Skip to content

Commit 8746505

Browse files
committed
Format code style in http.mts parameter destructuring
1 parent 17885a1 commit 8746505

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/utils/http.mts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,7 @@ async function httpDownloadAttempt(
293293
onProgress?: ((downloaded: number, total: number) => void) | undefined
294294
} = {},
295295
): Promise<CResult<{ path: string; size: number }>> {
296-
const {
297-
headers = {},
298-
onProgress,
299-
timeout = 120000,
300-
} = options
296+
const { headers = {}, onProgress, timeout = 120000 } = options
301297

302298
return await new Promise(resolve => {
303299
const parsedUrl = new URL(url)

0 commit comments

Comments
 (0)