diff --git a/src/printer.js b/src/printer.js
index <HASH>..<HASH> 100644
--- a/src/printer.js
+++ b/src/printer.js
@@ -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();
Remove hasContent (#<I>)

A content is a node that isn't an empty statement.