From 306132bf37ecb5d64bd7227848117ce4d159b2c3 Mon Sep 17 00:00:00 2001 From: Pedro Palacios Avila Date: Sat, 29 May 2021 22:15:57 -0500 Subject: [PATCH] Dead code and console.log removal --- lib/util/ast.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/util/ast.js b/lib/util/ast.js index da27a9f855..fb740f0b72 100644 --- a/lib/util/ast.js +++ b/lib/util/ast.js @@ -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'); }