Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit 4d4984e

Browse files
author
Radislav Berkovich
committed
tech : tryRemoveTempTestResultFile should use deleteIfExists
1 parent e936909 commit 4d4984e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microfocus/application/automation/tools/octane/CIJenkinsServicesImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private void tryRemoveTempTestResultFile(Run run) {
344344
if (matches != null) {
345345
for (File f : matches) {
346346
try {
347-
Files.delete(f.toPath());
347+
Files.deleteIfExists(f.toPath());
348348
} catch (Exception e) {
349349
logger.error("Failed to delete the temp test result file at '" + f.getPath() + "'", e);
350350
}

0 commit comments

Comments
 (0)