We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a4e77 commit 53a986fCopy full SHA for 53a986f
compiler/test/dotty/tools/vulpix/FileDiff.scala
@@ -45,8 +45,7 @@ object FileDiff {
45
false
46
case _ =>
47
val jOutFilePath = Paths.get(outFilePath)
48
- if (Files.exists(jOutFilePath))
49
- try { Files.delete(jOutFilePath) } catch { case _: Exception => () }
+ Files.deleteIfExists(jOutFilePath)
50
true
51
}
52
0 commit comments