Skip to content

Commit 53a986f

Browse files
committed
minor change to address review
1 parent 29a4e77 commit 53a986f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/test/dotty/tools/vulpix/FileDiff.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ object FileDiff {
4545
false
4646
case _ =>
4747
val jOutFilePath = Paths.get(outFilePath)
48-
if (Files.exists(jOutFilePath))
49-
try { Files.delete(jOutFilePath) } catch { case _: Exception => () }
48+
Files.deleteIfExists(jOutFilePath)
5049
true
5150
}
5251
}

0 commit comments

Comments
 (0)