Skip to content

Commit 4316c9f

Browse files
committed
Address review comments
1 parent a45f57b commit 4316c9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/interactive/InteractiveDriver.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ class InteractiveDriver(val settings: List[String]) extends Driver {
134134
for {
135135
entry <- zipFile.stream.toArray((size: Int) => new Array[ZipEntry](size))
136136
name = entry.getName
137-
tastySuffix <- tastySuffixes
138-
if name.endsWith(tastySuffix)
137+
tastySuffix <- tastySuffixes.find(name.endsWith)
139138
} yield name.replace("/", ".").stripSuffix(tastySuffix)
140139
}
141140
finally zipFile.close()

0 commit comments

Comments
 (0)