Skip to content

Commit e2aa7d3

Browse files
committed
linter
1 parent fe3a144 commit e2aa7d3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

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)