Skip to content

Commit e08718c

Browse files
committed
fixup! fix browser test?
1 parent 8388f98 commit e08718c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hub/src/utils/XetBlob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export class XetBlob extends Blob {
293293
leftoverBytes = undefined;
294294
}
295295

296-
while (totalBytesRead < maxBytes) {
296+
while (totalBytesRead < maxBytes && result.value.length) {
297297
if (result.value.length < 8) {
298298
// We need 8 bytes to parse the chunk header
299299
leftoverBytes = result.value;

0 commit comments

Comments
 (0)