Skip to content

Commit b6ecfb5

Browse files
committed
整理
1 parent 5b7ce97 commit b6ecfb5

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎okhttps/src/main/java/com/ejlchina/okhttps/HttpResult.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ interface Body extends Toable {
197197
int getStatus();
198198

199199
/**
200-
* WebSocket 返回 101 也返回 true (v3.5.1)
200+
* WebSocket 返回 101 也返回 true (since v3.5.1)
201201
* @return 是否响应成功,状态码在 [200..300) 之间
202202
*/
203203
boolean isSuccessful();

‎okhttps/src/main/java/com/ejlchina/okhttps/WHttpTask.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@ private Close updateStatus(HttpResult.State state, int code, String reason) {
280280
public void onFailure(okhttp3.WebSocket ws, Throwable t, Response response) {
281281
IOException e = t instanceof IOException ? (IOException) t : new IOException(t.getMessage(), t);
282282
doOnClose(toState(e), 0, t.getMessage());
283-
284-
285283
TaskListener<IOException> listener = httpClient.executor().getExceptionListener();
286284
Listener<Throwable> exceptionListener = onException;
287285
if (listener != null) {

0 commit comments

Comments
 (0)