Skip to content

Commit

Permalink
review feedback: remove conditional because we know it is "<"
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Robertson committed May 15, 2019
1 parent 3decb64 commit a27047f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/babel-parser/src/plugins/typescript/index.js
Expand Up @@ -1478,12 +1478,11 @@ export default (superClass: Class<Parser>): Class<Parser> =>
const params = this.tsInType(() =>
// Temporarily remove a JSX parsing context, which makes us scan different tokens.
this.tsInNoContext(() => {
if (this.eatRelational("<")) {
return this.tsTryParseDelimitedList(
"TypeParametersOrArguments",
this.tsParseType.bind(this),
);
}
this.next();
return this.tsTryParseDelimitedList(
"TypeParametersOrArguments",
this.tsParseType.bind(this),
);
}),
);
if (params) {
Expand Down

0 comments on commit a27047f

Please sign in to comment.