Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 4, 2021
1 parent 2941d60 commit 1301462
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/babel-parser/src/plugins/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2138,10 +2138,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
node.typeParameters = typeArguments;
if (state.optionalChainMember) {
// $FlowIgnore
node.optional = false;
}
if (isOptionalCall) {
node.optional = true;
node.optional = isOptionalCall;
}

return this.finishCallExpression(node, state.optionalChainMember);
Expand Down

0 comments on commit 1301462

Please sign in to comment.