*remove buffer argument from handleGETRequest
This commit is contained in:
parent
4c4f91c265
commit
106e1926bf
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue