Skip to content

Commit

Permalink
refactor: update tsCheckLineTerminator
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeci committed Feb 12, 2021
1 parent f8e3472 commit cb2c0ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/babel-parser/src/plugins/typescript/index.js
Expand Up @@ -1676,10 +1676,9 @@ export default (superClass: Class<Parser>): Class<Parser> =>
if (next) {
if (this.hasFollowingLineBreak()) return false;
this.next();
} else if (this.isLineTerminator()) {
return false;
return true;
}
return true;
return !this.isLineTerminator();
}

tsTryParseGenericAsyncArrowFunction(
Expand Down

0 comments on commit cb2c0ec

Please sign in to comment.