Skip to content

Commit

Permalink
FormatOps: definite NL in OptionalBraces.BlockImpl
Browse files Browse the repository at this point in the history
No need to call the `maybe`-block method.
  • Loading branch information
kitbellew committed Aug 16, 2024
1 parent 1eec787 commit a433650
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ class FormatOps(
if !hasSingleTermStat(t) && isBlockStart(t, nft) =>
Some(new OptionalBracesRegion {
def owner = t.parent
def splits = Some(getSplitsMaybeBlock(ft, nft, t))
def splits = Some(getSplits(ft, t, forceNL = true))
def rightBrace = treeLast(t)
})
case _ => None
Expand Down

0 comments on commit a433650

Please sign in to comment.