We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2be81b commit 3882648Copy full SHA for 3882648
1 file changed
src/client.ts
@@ -323,9 +323,10 @@ export class Pushy {
323
this.throwIfEnabled(Error('errorChecking: ' + errorMessage));
324
return this.lastRespJson ? await this.lastRespJson : emptyObj;
325
}
326
- this.lastRespJson = resp.json();
+ const respJsonPromise = resp.json() as Promise<CheckResult>;
327
+ this.lastRespJson = respJsonPromise;
328
- const result: CheckResult = await this.lastRespJson;
329
+ const result: CheckResult = await respJsonPromise;
330
331
log('checking result:', result);
332
0 commit comments