src/nodes/hashes.js in prettier-0.18.0 vs src/nodes/hashes.js in prettier-0.18.1

- old
+ new

@@ -10,11 +10,11 @@ const { prefix, skipAssignIndent } = require("../utils"); const nodeDive = (node, steps) => { let current = node; - steps.forEach(step => { + steps.forEach((step) => { current = current[step]; }); return current; }; @@ -27,10 +27,10 @@ // * Starts with a letter (either case) or an underscore // * Does not end in equal // // This function represents that check, as it determines if it can convert the // symbol node into a hash label. -const isValidHashLabel = symbolLiteral => { +const isValidHashLabel = (symbolLiteral) => { const label = symbolLiteral.body[0].body[0].body; return label.match(/^[_A-Za-z]/) && !label.endsWith("="); }; const makeLabel = (path, { preferHashLabels }, print, steps) => {