mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-10 08:36:53 +01:00
Do not delete files that are not there
This commit is contained in:
@@ -122,10 +122,12 @@ public class ModifyCommandRequest implements Resetable, Validateable {
|
||||
}
|
||||
|
||||
void cleanup() {
|
||||
try {
|
||||
IOUtil.delete(content);
|
||||
} catch (IOException e) {
|
||||
LOG.warn("could not delete temporary file {}", content, e);
|
||||
if (content.exists()) {
|
||||
try {
|
||||
IOUtil.delete(content);
|
||||
} catch (IOException e) {
|
||||
LOG.warn("could not delete temporary file {}", content, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user