Skip to content

Commit

Permalink
chore: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored May 16, 2024
1 parent 9a5640c commit f8f5413
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ export function createFetch(globalOptions: CreateFetchOptions = {}): $Fetch {
? context.options.retryStatusCodes.includes(responseCode)
: retryStatusCodes.has(responseCode))
) {
const retryDelay = typeof context.options.retryDelay === 'function' ?
context.options.retryDelay(context) :
context.options.retryDelay || 0;
const retryDelay =
typeof context.options.retryDelay === "function"
? context.options.retryDelay(context)
: context.options.retryDelay || 0;
if (retryDelay > 0) {
await new Promise((resolve) => setTimeout(resolve, retryDelay));
}
Expand Down

0 comments on commit f8f5413

Please sign in to comment.