Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Oct 9, 2023
1 parent 29fec55 commit 5d8eeab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/request/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default async function request<TData, TBody>(
return result;
}

const getResponseBody = async <TData>(res: Response): Promise<TData> => {
async function getResponseBody<TData>(res: Response): Promise<TData> {
if (!(res.headers.get("content-length") !== "0")) {
return null as TData;
}
Expand All @@ -78,4 +78,4 @@ const getResponseBody = async <TData>(res: Response): Promise<TData> => {
} catch {
return (await res.text()) as TData;
}
};
}

0 comments on commit 5d8eeab

Please sign in to comment.