Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant check
Browse files Browse the repository at this point in the history
jakebailey committed Jan 10, 2024
1 parent 3fa526c commit 4e80546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/scanner.ts
Original file line number Diff line number Diff line change
@@ -1801,7 +1801,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean
// this is likely a binary file that cannot be parsed
let isBinary = ch === CharacterCodes.replacementCharacter;
// See if this is an MPEG Transport Stream, where every 188th byte is "G" and the rest is garbage.
if (!isBinary && ch === CharacterCodes.G) {
if (ch === CharacterCodes.G) {
const end = Math.min(text.length, pos + 188);
let i = pos + charSize(ch);
while (i < end) {

0 comments on commit 4e80546

Please sign in to comment.