Skip to content

Commit 9e0c007

Browse files
committed
Fix fatal warining
1 parent cf2a0c4 commit 9e0c007

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/io/ZipArchive.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ final class FileZipArchive(jpath: JPath) extends ZipArchive(jpath) {
157157
while (entries.hasMoreElements) {
158158
val zipEntry = entries.nextElement
159159
val dir = getDir(dirs, zipEntry)
160-
if (zipEntry.isDirectory) dir
161-
else {
160+
if (!zipEntry.isDirectory) {
162161
val f =
163162
if (ZipArchive.closeZipFile)
164163
new LazyEntry(

0 commit comments

Comments
 (0)