Skip to content

Commit

Permalink
Removed constant condition in parser (#8177)
Browse files Browse the repository at this point in the history
  • Loading branch information
GerHobbelt authored and Andarist committed Jun 15, 2018
1 parent bc64e02 commit ba98cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/plugins/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -2606,7 +2606,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
if (this.input.slice(this.state.pos + 2, 14) === "flow-include") {
return 14; // check for /*flow-include
}
if (ch2 === charCodes.colon && ch3 !== charCodes.colon && 2) {
if (ch2 === charCodes.colon && ch3 !== charCodes.colon) {
return 2; // check for /*:, advance only 2 steps
}
return false;
Expand Down

0 comments on commit ba98cf7

Please sign in to comment.