diff --git a/__tests__/download.test.ts b/__tests__/download.test.ts index 05e5707..3b6ee3e 100644 --- a/__tests__/download.test.ts +++ b/__tests__/download.test.ts @@ -357,7 +357,7 @@ describe('Download Tests', () => { plaintext: Buffer | string ): Promise { if (isGzip) { - return await promisify(gzip)(plaintext) + return await promisify(gzip)(plaintext) } else if (typeof plaintext === 'string') { return Buffer.from(plaintext, defaultEncoding) } else { diff --git a/src/internal/requestUtils.ts b/src/internal/requestUtils.ts index d11db03..65f40e7 100644 --- a/src/internal/requestUtils.ts +++ b/src/internal/requestUtils.ts @@ -69,7 +69,7 @@ export async function retry( throw Error(`${name} failed: ${errorMessage}`) } -export async function retryHttpClientRequest( +export async function retryHttpClientRequest( name: string, method: () => Promise, customErrorMessages: Map = new Map(),