remove redundant replaceExpressionWithStatements for statement or block nodes - fixes #1265

This commit is contained in:
Sebastian McKenzie
2015-04-15 15:16:34 -07:00
parent 24b13c5e49
commit 20d7603c0b

View File

@@ -178,7 +178,6 @@ export default class TraversalPath {
} else if (this.isStatementOrBlock()) {
if (this.node) nodes.unshift(this.node);
this.container[this.key] = t.blockStatement(nodes);
this.replaceExpressionWithStatements(nodes);
} else {
throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");
}