Skip to content

Commit

Permalink
FormatOps: remove redundant check for LeftParen
Browse files Browse the repository at this point in the history
This method is invoked only for such cases anyway, as the name implies.
  • Loading branch information
kitbellew committed Sep 16, 2024
1 parent 1b1d57d commit 972b273
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ class FormatOps(
ft: FormatToken,
)(implicit style: ScalafmtConfig): Boolean =
(ft.meta.rightOwner match {
case _: Member.ArgClause => ft.right.is[T.LeftParen] &&
style.newlines.isBeforeOpenParenCallSite
case _: Member.ArgClause => style.newlines.isBeforeOpenParenCallSite
case t => isJustBeforeTree(ft)(t)
}) && notInfixRhs(ft, tokenIsChecked = true)

Expand Down

0 comments on commit 972b273

Please sign in to comment.