Skip to content

Commit d64abc2

Browse files
author
YangSen-qn
committed
modify dns cache logic
1 parent bf758bc commit d64abc2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/src/main/java/com/qiniu/android/http/dns/DnsCacheFile.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ public DnsCacheFile(String directory) throws IOException {
2222

2323
this.directory = directory;
2424
f = new File(directory);
25-
if (!f.isDirectory()) {
26-
throw new IOException("does not mkdir");
27-
}
25+
2826
if (!f.exists()) {
2927
boolean r = f.mkdirs();
3028
if (!r) {

0 commit comments

Comments
 (0)