We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c5b864 commit 19e23fcCopy full SHA for 19e23fc
library/src/main/java/com/qiniu/android/storage/persistent/DnsCacheFile.java
@@ -21,16 +21,16 @@ public DnsCacheFile(String directory) throws IOException {
21
this.directory = directory;
22
f = new File(directory);
23
24
- if (!f.isDirectory()) {
25
- throw new IOException("does not mkdir");
26
- }
27
-
28
if (!f.exists()) {
29
boolean r = f.mkdirs();
30
if (!r) {
31
throw new IOException("mkdir failed");
32
}
33
+
+ if (!f.isDirectory()) {
+ throw new IOException("does not mkdir");
+ }
34
35
36
/**
0 commit comments