Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Oct 24, 2024
1 parent 7c462d0 commit e9a25ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,11 @@ function always(toggle: boolean): (input: RequestInput, requestInit?: RequestIni
}

const normalizeError = async (request: Request, errorOrFunction?: ErrorOrFunction): Promise<Response> =>
errorOrFunction instanceof Error
? Promise.reject(errorOrFunction)
: typeof errorOrFunction === 'function'
? buildResponse(request, errorOrFunction)
: Promise.reject(errorOrFunction);
errorOrFunction instanceof Error
? Promise.reject(errorOrFunction)
: typeof errorOrFunction === 'function'
? buildResponse(request, errorOrFunction)
: Promise.reject(errorOrFunction);

function abortError(): Error {
return new DOMException('The operation was aborted.');
Expand Down

0 comments on commit e9a25ee

Please sign in to comment.