From da6f36bdf3569e814e26cdd69347e951423582d6 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 23 Sep 2022 17:04:45 +0300 Subject: [PATCH] Fix two more promises by adding void type. --- claims/linking/bulkClaim/bulkClaim.component.ts | 2 +- searchPages/searchResearchResults.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/claims/linking/bulkClaim/bulkClaim.component.ts b/claims/linking/bulkClaim/bulkClaim.component.ts index fdce3997..29f20728 100644 --- a/claims/linking/bulkClaim/bulkClaim.component.ts +++ b/claims/linking/bulkClaim/bulkClaim.component.ts @@ -226,7 +226,7 @@ export class BulkClaimComponent { } makeFileRequest(url: string, params: Array, files: Array) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { const formData: any = new FormData(); const xhr = new XMLHttpRequest(); for (let i = 0; i < files.length; i++) { diff --git a/searchPages/searchResearchResults.component.ts b/searchPages/searchResearchResults.component.ts index 20faaf4f..437eb96a 100644 --- a/searchPages/searchResearchResults.component.ts +++ b/searchPages/searchResearchResults.component.ts @@ -210,7 +210,7 @@ export class SearchResearchResultsComponent { } racePromiseWithTimeout() { - const timeoutPromise = new Promise((_, reject) => { + const timeoutPromise = new Promise((_, reject) => { this.timeoutId = setTimeout(() => { this.publicCommunities = []; reject(new Error('Request timed out'));