Skip to content

Commit

Permalink
babel-parser: Remove redundant throws in expression.js
Browse files Browse the repository at this point in the history
  • Loading branch information
js-choi authored and nicolo-ribaudo committed Oct 10, 2021
1 parent 168bbc7 commit 8e2fdde
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/babel-parser/src/parser/expression.js
Expand Up @@ -1225,14 +1225,11 @@ export default class ExpressionParser extends LValParser {
) {
this.expectOnePlugin(["jsx", "flow", "typescript"]);
break;
} else {
throw this.unexpected();
}
} else {
throw this.unexpected();
}
}

// fall through
default:
if (tokenIsIdentifier(type)) {
if (
Expand Down

0 comments on commit 8e2fdde

Please sign in to comment.