File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/core/tasty Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ object BestEffortTastyWriter:
1818 unit.pickled.foreach { (clz, binary) =>
1919 val parts = clz.fullName.mangledString.split('.' )
2020 val outPath = outputPath(parts.toList, dir)
21- val outTastyFile = new PlainFile (new File (outPath))
21+ val file = new File (outPath)
22+ val outTastyFile = new PlainFile (file)
2223 val outstream = new DataOutputStream (outTastyFile.bufferedOutput)
2324 try outstream.write(binary())
2425 catch case ex : ClosedByInterruptException =>
2526 try
26- outTastyFile .delete() // don't leave an empty or half-written tastyfile around after an interrupt
27+ file .delete() // don't leave an empty or half-written tastyfile around after an interrupt
2728 catch
2829 case _ : Throwable =>
2930 throw ex
You can’t perform that action at this time.
0 commit comments