Skip to content
Permalink
Browse files

[JENKINS-50439] Remove spurious warning when starting Jenkins

  • Loading branch information...
batmat committed Mar 27, 2018
1 parent 091c30f commit 64ba04916ad2a8906b7a959fbda6c7331fe0c79c
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/Main.java
@@ -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

0 comments on commit 64ba049

Please sign in to comment.
You can’t perform that action at this time.