Skip to content

Commit

Permalink
fix issue in fetchUtil.fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Sep 16, 2024
1 parent 156daab commit cb4fa70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/FetchUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ export class FetchUtil {
url: RequestInfo,
init?: RequestInit,
): Promise<Response> {
return nodeFetch(url, init);
if(init)
return nodeFetch(url, init);
else
return nodeFetch(url);
}

public static fetchWithTimeout(
Expand Down

0 comments on commit cb4fa70

Please sign in to comment.