Skip to content

Commit c72f1f6

Browse files
committed
Cleanup after running
1 parent 8032404 commit c72f1f6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/Runner/Commands/Runner.swift

+2-3
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ func runDanger(logger: Logger) throws {
177177
logger.logError("Could not get the results JSON file at \(dangerResponsePath)")
178178
// Clean up after ourselves
179179
try? fileManager.removeItem(atPath: dslJSONPath)
180-
try? fileManager.removeItem(atPath: tempDangerfilePath)
181-
try? fileManager.removeItem(atPath: dangerResponsePath)
180+
try? fileManager.removeItem(atPath: tmpPath)
182181
exit(1)
183182
}
184183

@@ -188,7 +187,7 @@ func runDanger(logger: Logger) throws {
188187

189188
// Clean up after ourselves
190189
try? fileManager.removeItem(atPath: dslJSONPath)
191-
try? fileManager.removeItem(atPath: tempDangerfilePath)
190+
try? fileManager.removeItem(atPath: tmpPath)
192191

193192
// Return the same error code as the compilation
194193
exit(proc.terminationStatus)

0 commit comments

Comments
 (0)