Skip to content

Commit 3093341

Browse files
committed
style: prettier on registry (the resumable-download block)
1 parent 8ae7c43 commit 3093341

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/ml/imf/registry.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ async function fetchWithProgress(
204204
} catch {
205205
continue
206206
}
207-
if (!res.ok && res.status !== 206) throw new RegistryError(`fetch failed: ${url} -> ${res.status}`)
207+
if (!res.ok && res.status !== 206)
208+
throw new RegistryError(`fetch failed: ${url} -> ${res.status}`)
208209
if (received === 0) total = Number(res.headers.get("content-length") ?? 0)
209210
else if (res.status !== 206) {
210211
// server ignored Range: restart cleanly rather than corrupt

0 commit comments

Comments
 (0)