Skip to content

Commit 093eafe

Browse files
authored
Remove duplicate code (#530)
1 parent e4a809e commit 093eafe

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

core.js

-5
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ class FileTypeParser {
8181
tokenizer.fileInfo.size = Number.MAX_SAFE_INTEGER;
8282
}
8383

84-
// Keep reading until EOF if the file size is unknown.
85-
if (tokenizer.fileInfo.size === undefined) {
86-
tokenizer.fileInfo.size = Number.MAX_SAFE_INTEGER;
87-
}
88-
8984
this.tokenizer = tokenizer;
9085

9186
await tokenizer.peekBuffer(this.buffer, {length: 12, mayBeLess: true});

0 commit comments

Comments
 (0)