Skip to content

Commit

Permalink
Dead code and console.log removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesitos committed May 30, 2021
1 parent 9fdbd69 commit 306132b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/util/ast.js
Expand Up @@ -79,16 +79,11 @@ function traverseReturns(ASTNode, enterFunc) {
return enterFunc(ASTNode.body);
}

if (nodeType === 'ReturnStatement') {
return enterFunc(ASTNode);
}

if (nodeType !== 'FunctionExpression'
&& nodeType !== 'FunctionDeclaration'
&& nodeType !== 'ArrowFunctionExpression'
&& nodeType !== 'MethodDefinition'
) {
console.log(nodeType);
throw new TypeError('only function nodes are expected');
}

Expand Down

0 comments on commit 306132b

Please sign in to comment.