Skip to content

Commit

Permalink
Router: extend SLB after scala.js right paren
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Sep 23, 2024
1 parent ae6bfbc commit ec6e5eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1269,8 +1269,9 @@ class Router(formatOps: FormatOps) {
if (!oneline) findComma(ft)
else if (isSingleArg) None
else afterFirstArgOneline.map(_.right)
val opt = nextComma
.getOrElse(scalaJsOptCloseOnRight(beforeClose, flags).right)
val opt = nextComma.getOrElse(endOfSingleLineBlock(
next(scalaJsOptCloseOnRight(beforeClose, flags)),
))

val slbArg = oneline && !noSplitIndents.exists(_.hasStateColumn)
val slbPolicy: Policy = (if (slbArg) nextComma else None).map {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ newlines.source = keep
===
realeasy && isJavaAtLeast(9) && !perFile.exists(releaseFlag.matches) && toolArgsFor(sources)(ToolName.javaVersion).isEmpty
>>>
Idempotency violated
=> Diff (- obtained, + expected)
-realeasy && isJavaAtLeast(9) && !perFile.exists(
- releaseFlag.matches) && toolArgsFor(
+realeasy && isJavaAtLeast(9) && !perFile.exists(releaseFlag.matches) && toolArgsFor(
sources)(ToolName.javaVersion).isEmpty
realeasy && isJavaAtLeast(9) && !perFile.exists(
releaseFlag.matches) && toolArgsFor(sources)(ToolName.javaVersion)
.isEmpty

0 comments on commit ec6e5eb

Please sign in to comment.