Skip to content

Commit

Permalink
Reuse change from deprecated code instead of a loop, should suffice
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrankowski committed Oct 26, 2023
1 parent 52147b7 commit 9104066
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private static File getTempDir()

final File systemTempDir = new File(systemTempDirPath);
final File tempDir = new File(systemTempDir, dirName);
if (!tempDir.exists() && !tempDir.mkdirs())
if (!tempDir.exists() && !tempDir.mkdirs() && !tempDir.exists())
{
throw new RuntimeException("Failed to create temp directory: " + tempDir);
}
Expand Down

0 comments on commit 9104066

Please sign in to comment.