From: Daniel Stenberg Date: Sun, 12 Jul 2020 16:26:35 +0000 (+0200) Subject: multi: remove two checks always true X-Git-Tag: curl-7_72_0~110 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61a08508f6a458fe21bbb18cd2a9bac2f039452b;p=thirdparty%2Fcurl.git multi: remove two checks always true Detected by Codacy Closes #5676 --- diff --git a/lib/multi.c b/lib/multi.c index 249e3607b7..2ad5027568 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -1808,7 +1808,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, multistate(data, CURLM_STATE_SENDPROTOCONNECT); } } - else if(result) + else stream_error = TRUE; break; #endif @@ -1858,7 +1858,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, multistate(data, CURLM_STATE_DO); rc = CURLM_CALL_MULTI_PERFORM; } - else if(result) { + else { /* failure detected */ Curl_posttransfer(data); multi_done(data, result, TRUE);