Skip to content

Commit

Permalink
minor cleanup (#3723)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed Feb 15, 2020
1 parent 31a7bf2 commit 5315dd9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/ast.js
Expand Up @@ -169,10 +169,7 @@ var AST_SimpleStatement = DEFNODE("SimpleStatement", "body", {
}, AST_Statement);

function walk_body(node, visitor) {
var body = node.body;
if (body instanceof AST_Statement) {
body._walk(visitor);
} else body.forEach(function(node) {
node.body.forEach(function(node) {
node._walk(visitor);
});
}
Expand Down

0 comments on commit 5315dd9

Please sign in to comment.