Skip to content

Commit

Permalink
Remove guard
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Feb 19, 2020
1 parent ccd06bb commit a9dc043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eslint/babel-eslint-parser/src/convert/convertAST.js
Expand Up @@ -22,15 +22,15 @@ function convertNodes(ast, code) {
exit(path) {
const node = path.node;

if (Object.hasOwnProperty.call(node, "extra")) {
if (node.extra) {
delete node.extra;
}

if (Object.hasOwnProperty.call(node, "variance")) {
if (node.variance) {
delete node.variance;
}

if (Object.hasOwnProperty.call(node, "typeArguments")) {
if (node.typeArguments) {
delete node.typeArguments;
}

Expand Down

0 comments on commit a9dc043

Please sign in to comment.