Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static Reference<File> createBlobStorageDirectory(
if (fallbackStorageDirectory != null) {
baseDir = fallbackStorageDirectory.deref();

if (baseDir.mkdirs() || baseDir.exists()) {
if (baseDir.exists() || baseDir.mkdirs()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the first thing that mkdirs() does is call exists(). Can we remove the baseDir.exists()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your reminder. But it let me take a second thinking.
After the second thinking, it's no need to change this line.

return fallbackStorageDirectory;
}
}
Expand Down