mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Simplification
This commit is contained in:
parent
a2ef375a94
commit
728d5b796c
1 changed files with 2 additions and 4 deletions
|
@ -156,7 +156,6 @@ import java.util.Locale;
|
|||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
|
@ -2237,8 +2236,7 @@ public class Helper {
|
|||
exists.put(dir, true);
|
||||
}
|
||||
|
||||
if (!isUiThread() && !dir.exists())
|
||||
if (!dir.mkdirs())
|
||||
if (!dir.exists() && !dir.mkdirs())
|
||||
throw new IllegalArgumentException("Failed to create=" + dir);
|
||||
|
||||
return dir;
|
||||
|
|
Loading…
Reference in a new issue