Skip to content

Commit af875ae

Browse files
authored
Use Files.newOutputStream instead of new java.io.FileOutputStream (#323)
As in com-lihaoyi/mill#3764
1 parent f1bf225 commit af875ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os/src/ZipOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ object zip {
7272
)
7373
} finally opened.close()
7474
} else {
75-
val f = new java.io.FileOutputStream(dest.toIO)
75+
val f = Files.newOutputStream(dest.toNIO)
7676
try createNewZip(
7777
sources,
7878
excludePatterns,

0 commit comments

Comments
 (0)