Skip to content

Commit

Permalink
抑制不必要的警告
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamVoid committed Jun 16, 2024
1 parent c1e2ee4 commit fbad612
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ public void loadLibraryMaven(String groupId, String artifactId, String version,
}

if(needDownload){
if (!file.getParentFile().mkdirs()) logger.warning("Failed to create folder " + file.getParent());
if (!file.getParentFile().exists() && !file.getParentFile().mkdirs())
logger.warning("Failed to create folder " + file.getParent());
Utils.Http.download(url, file);
}

Expand Down

0 comments on commit fbad612

Please sign in to comment.