]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: remove two checks always true
authorDaniel Stenberg <daniel@haxx.se>
Sun, 12 Jul 2020 16:26:35 +0000 (18:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Jul 2020 22:12:08 +0000 (00:12 +0200)
Detected by Codacy
Closes #5676

lib/multi.c

index 249e3607b71e4d420ec60579e46f0531cd5e8abb..2ad502756828c47fb2acc1738df87d6bcee05f6c 100644 (file)
@@ -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);