Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

Commit

Permalink
[JENKINS-50439] Remove spurious warning when starting Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
batmat committed Mar 27, 2018
1 parent 091c30f commit 64ba049
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/Main.java
Expand Up @@ -475,6 +475,10 @@ private static void deleteContentsFromFolder(File folder, final String...pattern
}

private static void deleteWinstoneTempContents(File file) throws IOException {
if (!file.exists()) {
LOGGER.log(Level.FINEST, "No file found at {0}, nothing to delete.", file);
return;
}
if(file.isDirectory()) {
File[] files = file.listFiles();
if(files!=null) {// be defensive
Expand Down

0 comments on commit 64ba049

Please sign in to comment.