dist/ruby/nodes/commands.js in prettier-2.0.0.pre.rc1 vs dist/ruby/nodes/commands.js in prettier-2.0.0.pre.rc2

- old
+ new

@@ -60,12 +60,12 @@ // 'five' // ) // // In this case the arguments are aligned to the left side as opposed to being // aligned with the `receive` call. -function skipArgsAlign(path) { - return ["to", "not_to"].includes(path.getValue().body[2].body); +function skipArgsAlign(node) { + return ["to", "not_to", "to_not"].includes(node.body[2].body); } // If there is a ternary argument to a command and it's going to get broken // into multiple lines, then we're going to have to use parentheses around the // command in order to make sure operator precedence doesn't get messed up. function hasTernaryArg(node) { @@ -108,10 +108,10 @@ let breakDoc; if (hasTernaryArg(node.body[3])) { breakDoc = parts.concat("(", indent([softline, argDocs]), softline, ")"); parts.push(" "); } - else if (skipArgsAlign(path)) { + else if (skipArgsAlign(node)) { parts.push(" "); breakDoc = parts.concat(argDocs); } else { parts.push(" ");