Skip to content

Commit ed95b88

Browse files
committed
Match Scala 3 style
1 parent 4961009 commit ed95b88

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
@@ -330,11 +330,10 @@ object Checking {
330330
}
331331

332332
val errs = buffer.toList.flatMap(eff => check(eff))
333-
if errs.isEmpty then {
333+
if errs.isEmpty then
334334
Errors.empty
335-
} else {
335+
else
336336
UnsafePromotion(warm, eff.source, state.path, errs.toList).toErrors
337-
}
338337

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

0 commit comments

Comments
 (0)