Skip to content

Commit

Permalink
perf: remove an unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lddubeau committed Aug 14, 2018
1 parent 3869908 commit ac03a1c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/saxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,11 @@ class SaxesParser {
}

c = this.getCode(chunkState);
const wasAtStart = atStart;
atStart = false;
if (!test(c, wasAtStart)) {
if (!test(c, atStart)) {
skip = c <= 0xFFFF ? 1 : 2;
break;
}
atStart = false;
}

// This is faster than adding codepoints one by one.
Expand Down

0 comments on commit ac03a1c

Please sign in to comment.