Remove hasContent (#1222)

A content is a node that isn't an empty statement.
This commit is contained in:
Christopher Chedeau authored and GitHub committed 2017-04-12 20:25:58 -07:00
1 parent 33fdcaec8b
commit 27d827aba6
1 file changed
+1 -1
+1 -1
View File
@@ -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();