diff --git a/src/retryOnEmpty.ts b/src/retryOnEmpty.ts index f81ac3f6..ace8a61f 100644 --- a/src/retryOnEmpty.ts +++ b/src/retryOnEmpty.ts @@ -122,10 +122,10 @@ export function createRetryOnEmptyMiddleware({ }); } -async function retry( +async function retry( maxRetries: number, - asyncFn: () => Promise, -): Promise { + asyncFn: () => Promise, +): Promise { for (let index = 0; index < maxRetries; index++) { try { return await asyncFn();