Skip to content

Commit

Permalink
Remove duplicate code (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsugi committed Feb 21, 2022
1 parent e4a809e commit 093eafe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core.js
Expand Up @@ -81,11 +81,6 @@ class FileTypeParser {
tokenizer.fileInfo.size = Number.MAX_SAFE_INTEGER;
}

// Keep reading until EOF if the file size is unknown.
if (tokenizer.fileInfo.size === undefined) {
tokenizer.fileInfo.size = Number.MAX_SAFE_INTEGER;
}

this.tokenizer = tokenizer;

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

0 comments on commit 093eafe

Please sign in to comment.