diff --git a/src/Utils/request/request.ts b/src/Utils/request/request.ts index 72df402ef1a..d428107b64c 100644 --- a/src/Utils/request/request.ts +++ b/src/Utils/request/request.ts @@ -62,7 +62,7 @@ export default async function request( return result; } -const getResponseBody = async (res: Response): Promise => { +async function getResponseBody(res: Response): Promise { if (!(res.headers.get("content-length") !== "0")) { return null as TData; } @@ -78,4 +78,4 @@ const getResponseBody = async (res: Response): Promise => { } catch { return (await res.text()) as TData; } -}; +}