File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,7 @@ func runDanger(logger: Logger) throws {
177
177
logger. logError ( " Could not get the results JSON file at \( dangerResponsePath) " )
178
178
// Clean up after ourselves
179
179
try ? fileManager. removeItem ( atPath: dslJSONPath)
180
- try ? fileManager. removeItem ( atPath: tempDangerfilePath)
181
- try ? fileManager. removeItem ( atPath: dangerResponsePath)
180
+ try ? fileManager. removeItem ( atPath: tmpPath)
182
181
exit ( 1 )
183
182
}
184
183
@@ -188,7 +187,7 @@ func runDanger(logger: Logger) throws {
188
187
189
188
// Clean up after ourselves
190
189
try ? fileManager. removeItem ( atPath: dslJSONPath)
191
- try ? fileManager. removeItem ( atPath: tempDangerfilePath )
190
+ try ? fileManager. removeItem ( atPath: tmpPath )
192
191
193
192
// Return the same error code as the compilation
194
193
exit ( proc. terminationStatus)
You can’t perform that action at this time.
0 commit comments