From 5d8eeabc72b10cba009deb560546dfc03e56d9e3 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 9 Oct 2023 18:39:35 +0530 Subject: [PATCH] fix build --- src/Utils/request/request.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -}; +}