Skip to content

Commit c304cdc

Browse files
committed
Match Scala 3 style
1 parent 63715e1 commit c304cdc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/src/dotty/tools/dotc/transform/init/Checking.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,10 @@ object Checking {
340340
}
341341

342342
val errs = buffer.toList.flatMap(eff => check(eff))
343-
if errs.isEmpty then {
343+
if errs.isEmpty then
344344
Errors.empty
345-
} else {
345+
else
346346
UnsafePromotion(warm, eff.source, state.path, errs.toList).toErrors
347-
}
348347

349348
private def checkPromote(eff: Promote)(using state: State): Errors =
350349
if (state.safePromoted.contains(eff.potential)) Errors.empty

0 commit comments

Comments
 (0)