src/nodes/case.js in prettier-0.18.0 vs src/nodes/case.js in prettier-0.18.1
- old
+ new
@@ -40,10 +40,10 @@
const stmts = path.call(print, "body", 1);
const parts = [concat(["when ", align("when ".length, preds)])];
// It's possible in a when to just have empty void statements, in which case
// we would skip adding the body.
- if (!stmts.parts.every(part => !part)) {
+ if (!stmts.parts.every((part) => !part)) {
parts.push(indent(concat([hardline, stmts])));
}
// This is the next clause on the case statement, either another `when` or
// an `else` clause.