Skip to content

Commit 3882648

Browse files
committed
fix type error
1 parent b2be81b commit 3882648

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,10 @@ export class Pushy {
323323
this.throwIfEnabled(Error('errorChecking: ' + errorMessage));
324324
return this.lastRespJson ? await this.lastRespJson : emptyObj;
325325
}
326-
this.lastRespJson = resp.json();
326+
const respJsonPromise = resp.json() as Promise<CheckResult>;
327+
this.lastRespJson = respJsonPromise;
327328

328-
const result: CheckResult = await this.lastRespJson;
329+
const result: CheckResult = await respJsonPromise;
329330

330331
log('checking result:', result);
331332

0 commit comments

Comments
 (0)