simplify VariableDeclaration ForStatement check
This commit is contained in:
@@ -173,12 +173,7 @@ exports.VariableDeclaration = function (node, print, parent) {
|
||||
|
||||
this.printJoin(print, node.declarations, ", ");
|
||||
|
||||
if (
|
||||
parent.type !== "ForStatement" &&
|
||||
parent.type !== "ForInStatement" &&
|
||||
parent.type !== "ForOfStatement" &&
|
||||
parent.type !== "ForOfStatement"
|
||||
) {
|
||||
if (!t.isFor(parent)) {
|
||||
this.semicolon();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user