Skip to content

Commit 295d91b

Browse files
committed
linter
1 parent 28c747a commit 295d91b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/printer.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function genericPrint(path, options, print) {
117117
if (lineShouldEndWithSemicolon(path)) {
118118
const isPipeChainStatement =
119119
node.kind === "expressionstatement" &&
120-
(node.expression.kind === "bin" && node.expression.type === "|>" ||
120+
((node.expression.kind === "bin" && node.expression.type === "|>") ||
121121
(node.expression.kind === "assign" &&
122122
node.expression.right.kind === "bin" &&
123123
node.expression.right.type === "|>"));
@@ -769,7 +769,11 @@ function printPipeChain(path, print, trailingSemicolon = false) {
769769
const semicolon = trailingSemicolon
770770
? ifBreak([hardlineWithoutBreakParent, ";"], ";")
771771
: "";
772-
return group([first, indent(rest.flatMap((el) => [line, "|> ", el])), semicolon]);
772+
return group([
773+
first,
774+
indent(rest.flatMap((el) => [line, "|> ", el])),
775+
semicolon,
776+
]);
773777
}
774778

775779
function printBinaryExpression(

0 commit comments

Comments
 (0)