Remove hasContent (#1222)
A content is a node that isn't an empty statement.
This commit is contained in:
1 parent
33fdcaec8b
commit
27d827aba6
1 file changed
+1
-1
+1
-1
@@ -541,7 +541,7 @@ function genericPrintNoParens(path, options, print, args) {
|
||||
return printStatementSequence(bodyPath, options, print);
|
||||
}, "body");
|
||||
|
||||
const hasContent = getFirstString(naked);
|
||||
const hasContent = n.body.find(node => node.type !== "EmptyStatement");
|
||||
const hasDirectives = n.directives && n.directives.length > 0;
|
||||
|
||||
var parent = path.getParentNode();
|
||||
|
||||
Reference in new issue
Block a user