Skip to content

Commit

Permalink
Add generic param to promise
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Sep 15, 2023
1 parent 5bb29ef commit 7c9bf04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function makeXHR(request: Request): Promise<unknown> {
// If we're using the Supportal token and this is not a Supportal request
// let's just return a promise that will resolve itself.
if (NetworkStore.getSupportAuthToken() && !NetworkStore.isSupportRequest(request.command)) {
return new Promise((resolve) => resolve(undefined));
return new Promise<void>((resolve) => resolve());
}
return HttpUtils.xhr(request.command, finalParameters, request.type, request.shouldUseSecure);
});
Expand Down

0 comments on commit 7c9bf04

Please sign in to comment.