diff --git a/src/printer.js b/src/printer.js index fb719b99e..8600a0b44 100644 --- a/src/printer.js +++ b/src/printer.js @@ -867,7 +867,7 @@ function genericPrintNoParens(path, options, print) { } return group(concat(parts)); - case "ForStatement": + case "ForStatement": { const body = adjustClause(path.call(print, "body"), options); if (!n.init && !n.test && !n.update) { @@ -900,6 +900,7 @@ function genericPrintNoParens(path, options, print) { ")", body, ]); + } case "WhileStatement": return concat([ "while (",