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:
18
18
unit.pickled.foreach { (clz, binary) =>
19
19
val parts = clz.fullName.mangledString.split('.' )
20
20
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)
22
23
val outstream = new DataOutputStream (outTastyFile.bufferedOutput)
23
24
try outstream.write(binary())
24
25
catch case ex : ClosedByInterruptException =>
25
26
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
27
28
catch
28
29
case _ : Throwable =>
29
30
throw ex
You can’t perform that action at this time.
0 commit comments