Skip to content

Commit 4b1df8b

Browse files
committed
Format code
1 parent 4e39ffc commit 4b1df8b

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
@@ -94,12 +94,12 @@ public void complete(ResponseInfo info, JSONObject response) {
9494
ZoneInfo info2 = ZoneInfo.buildFromJson(response);
9595
zones.put(index, info2);
9696
complete.onSuccess();
97+
return;
9798
} catch (JSONException e) {
9899
e.printStackTrace();
99100
complete.onFailure(ResponseInfo.NetworkError);
101+
return;
100102
}
101-
} else {
102-
complete.onFailure(info.statusCode);
103103
}
104104
complete.onFailure(info.statusCode);
105105
}

0 commit comments

Comments
 (0)