From 04a2166913b443dcc1b0754aad52b89ca3e9da17 Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Tue, 14 Mar 2023 17:02:09 +0100 Subject: [PATCH] suppress confusing warning --- src/vfs-http-worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vfs-http-worker.ts b/src/vfs-http-worker.ts index 1153b27..4c7544b 100644 --- a/src/vfs-http-worker.ts +++ b/src/vfs-http-worker.ts @@ -65,7 +65,7 @@ const backendAsyncMethods: return { url: msg.url, id: nextId++, - size: BigInt(head.headers.get('Content-Length')), + size: BigInt(head.headers.get('Content-Length') ?? 0), // This will be determined on the first read pageSize: null };