Skip to content

Commit

Permalink
refactor: rename variable to fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
clementdessoude committed Mar 13, 2021
1 parent 0781319 commit 69a44cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/prettier-plugin-java/src/printers/expressions.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class ExpressionsPrettierVisitor {
groupsOfOperator,
sortedBinaryOperators
} = separateTokensIntoGroups(ctx);
const segmentsSplittedByBinaryOperator = [];
const segmentsSplitByBinaryOperator = [];
let currentSegment = [];

if (groupsOfOperator.length === 1 && groupsOfOperator[0].length === 0) {
Expand Down Expand Up @@ -212,7 +212,7 @@ class ExpressionsPrettierVisitor {
);
}
}
segmentsSplittedByBinaryOperator.push(
segmentsSplitByBinaryOperator.push(
group(rejectAndJoin(" ", currentSegment))
);
});
Expand All @@ -227,7 +227,7 @@ class ExpressionsPrettierVisitor {
group(
rejectAndJoinSeps(
sortedBinaryOperators.map(elt => concat([" ", elt, line])),
segmentsSplittedByBinaryOperator
segmentsSplitByBinaryOperator
)
)
])
Expand All @@ -241,7 +241,7 @@ class ExpressionsPrettierVisitor {
return group(
rejectAndJoinSeps(
sortedBinaryOperators.map(elt => concat([" ", elt, line])),
segmentsSplittedByBinaryOperator
segmentsSplitByBinaryOperator
)
);
}
Expand Down

0 comments on commit 69a44cf

Please sign in to comment.