*remove buffer argument from handleGETRequest

This commit is contained in:
Derrick Hammer 2023-03-29 11:31:38 -04:00
parent 4c4f91c265
commit 106e1926bf
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,6 @@ export function getDefaultClientConfig() {
export async function handleGETRequest(
url: string,
isBuffer: boolean = true,
retry: number = 3
): Promise<any> {
if (retry < 0) {
@ -45,6 +44,6 @@ export async function handleGETRequest(
return await ret.json();
} catch (e) {
console.error(`failed GET request (${url}): ${e.message}`);
return handleGETRequest(url, isBuffer, retry - 1);
return handleGETRequest(url, retry - 1);
}
}