Skip to content

Commit f8f5413

Browse files
authoredMay 16, 2024··
chore: apply automated fixes
1 parent 9a5640c commit f8f5413

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

Diff for: ‎src/fetch.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ export function createFetch(globalOptions: CreateFetchOptions = {}): $Fetch {
6262
? context.options.retryStatusCodes.includes(responseCode)
6363
: retryStatusCodes.has(responseCode))
6464
) {
65-
const retryDelay = typeof context.options.retryDelay === 'function' ?
66-
context.options.retryDelay(context) :
67-
context.options.retryDelay || 0;
65+
const retryDelay =
66+
typeof context.options.retryDelay === "function"
67+
? context.options.retryDelay(context)
68+
: context.options.retryDelay || 0;
6869
if (retryDelay > 0) {
6970
await new Promise((resolve) => setTimeout(resolve, retryDelay));
7071
}

0 commit comments

Comments
 (0)
Please sign in to comment.