Skip to content

Commit 61a0850

Browse files
committed
multi: remove two checks always true
Detected by Codacy Closes #5676
1 parent a88fe0f commit 61a0850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/multi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
18081808
multistate(data, CURLM_STATE_SENDPROTOCONNECT);
18091809
}
18101810
}
1811-
else if(result)
1811+
else
18121812
stream_error = TRUE;
18131813
break;
18141814
#endif
@@ -1858,7 +1858,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
18581858
multistate(data, CURLM_STATE_DO);
18591859
rc = CURLM_CALL_MULTI_PERFORM;
18601860
}
1861-
else if(result) {
1861+
else {
18621862
/* failure detected */
18631863
Curl_posttransfer(data);
18641864
multi_done(data, result, TRUE);

0 commit comments

Comments
 (0)