Skip to content

Commit 5ab7165

Browse files
natsukagamimichelou
authored andcommitted
Match Scala 3 style
1 parent 67f915c commit 5ab7165

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
@@ -390,11 +390,10 @@ object Checking {
390390
}
391391

392392
val errs = buffer.toList.flatMap(eff => check(eff))
393-
if errs.isEmpty then {
393+
if errs.isEmpty then
394394
Errors.empty
395-
} else {
395+
else
396396
UnsafePromotion(warm, eff.source, state.path, errs.toList).toErrors
397-
}
398397

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

0 commit comments

Comments
 (0)