Skip to content

Commit

Permalink
remove variable x
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Jul 8, 2022
1 parent d4f71ff commit c226444
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/toolkit/src/query/fetchBaseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const handleResponse = async (
response: Response,
responseHandler: ResponseHandler
) => {
let x: never
if (typeof responseHandler === 'function') {
return responseHandler(response)
}
Expand All @@ -64,8 +63,7 @@ const handleResponse = async (
return text.length ? JSON.parse(text) : null
}

x = responseHandler
return x
return responseHandler
}

export type FetchBaseQueryError =
Expand Down

0 comments on commit c226444

Please sign in to comment.