Skip to content

Commit

Permalink
Ignore return value of mkdir in java
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Nov 11, 2023
1 parent 4d35dfb commit bf64536
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ private static String makeLogDir(String dir) {
+ " Plug in a FAT32 formatted flash drive!",
false);
}
new File("/home/lvuser/logs").mkdir();
if (!new File("/home/lvuser/logs").mkdir()) {
// ignored
}
return "/home/lvuser/logs";
}
return Filesystem.getOperatingDirectory().getAbsolutePath();
Expand Down

0 comments on commit bf64536

Please sign in to comment.