src/nodes/blocks.js in prettier-0.17.0 vs src/nodes/blocks.js in prettier-0.18.0
- old
+ new
@@ -6,11 +6,11 @@
indent,
join,
removeLines,
softline
} = require("../prettier");
-const { empty, first, hasAncestor } = require("../utils");
+const { empty, hasAncestor } = require("../utils");
const printBlock = (path, opts, print) => {
const [variables, statements] = path.getValue().body;
const stmts =
statements.type === "stmts" ? statements.body : statements.body[0].body;
@@ -74,8 +74,7 @@
parts.push("| ");
return concat(parts);
},
brace_block: printBlock,
do_block: printBlock,
- excessed_comma: empty,
- number_arg: first
+ excessed_comma: empty
};