Skip to content

Commit

Permalink
more tidy
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Mar 19, 2024
1 parent 53b0759 commit f29e0d7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public static void mkdirIfNotExists(String path) throws IOException {
File dir = Paths.get(path).toFile().getAbsoluteFile();
if (dir.exists()) {
if (!dir.isDirectory()) {
throw new IOException(
"File " + dir + " exists and is not a directory. Unable to create directory.");
throw new IOException("File " + dir + " exists and is not a directory. Unable to create directory.");
}
} else if (!dir.mkdirs() && !dir.isDirectory()) {
// Double-check that some other thread or process hasn't made
Expand Down

0 comments on commit f29e0d7

Please sign in to comment.