minor cleanup (#3723)

This commit is contained in:
Alex Lam S.L
2020-02-15 17:55:26 +00:00
committed by GitHub
parent 31a7bf2a22
commit 5315dd95b0

View File

@@ -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);
});
}