summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-07-12 18:26:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-07-12 18:26:35 +0200
commit73b3d3ada59cbfa1e69567998b6b31f868d1053f (patch)
tree4c580bdd26dda398fc2fb217348139f10276560b
parent2bd8fe882314f1f82a98dfab5f7d3e1765372c68 (diff)
downloadcurl-bagder/multi-result-always-true.tar.gz
multi: remove two checks always truebagder/multi-result-always-true
Detected by Codacy
-rw-r--r--lib/multi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 249e3607b..2ad502756 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);