Skip to content

Commit d60e654

Browse files
authored
Merge pull request #261 from zshbleaker/master
Format code
2 parents 78b08cd + 4b1df8b commit d60e654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/com/qiniu/android/common/AutoZone.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ public void complete(ResponseInfo info, JSONObject response) {
8989
ZoneInfo info2 = ZoneInfo.buildFromJson(response);
9090
zones.put(index, info2);
9191
complete.onSuccess();
92+
return;
9293
} catch (JSONException e) {
9394
e.printStackTrace();
9495
complete.onFailure(ResponseInfo.NetworkError);
96+
return;
9597
}
96-
} else {
97-
complete.onFailure(info.statusCode);
9898
}
9999
complete.onFailure(info.statusCode);
100100
}

0 commit comments

Comments
 (0)