Skip to content

Commit 53b3f6e

Browse files
committed
micro opt nonEmpty
1 parent d350c50 commit 53b3f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/scala/reflect/internal/Symbols.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ trait Symbols extends api.Symbols { self: SymbolTable =>
19781978
var alts0: List[Symbol] = alternatives
19791979
var alts1: List[Symbol] = Nil
19801980

1981-
while (alts0.nonEmpty) {
1981+
while (!alts0.isEmpty) {
19821982
if (cond(alts0.head))
19831983
alts1 ::= alts0.head
19841984
else

0 commit comments

Comments
 (0)