Skip to content

Commit f3517e0

Browse files
committed
remove variable x
1 parent ebce506 commit f3517e0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/toolkit/src/query/fetchBaseQuery.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const handleResponse = async (
4545
response: Response,
4646
responseHandler: ResponseHandler
4747
) => {
48-
let x: never
4948
if (typeof responseHandler === 'function') {
5049
return responseHandler(response)
5150
}
@@ -63,8 +62,7 @@ const handleResponse = async (
6362
return text.length ? JSON.parse(text) : null
6463
}
6564

66-
x = responseHandler
67-
return x
65+
return responseHandler
6866
}
6967

7068
export type FetchBaseQueryError =

0 commit comments

Comments
 (0)