diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-07-12 18:26:35 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-07-14 00:12:08 +0200 |
commit | 61a08508f6a458fe21bbb18cd2a9bac2f039452b (patch) | |
tree | 017babbf855f731e9a07f821cb2d6949aaf0ed20 /lib | |
parent | a88fe0fd146b018609a12815ecf336e09d28fb1f (diff) | |
download | curl-61a08508f6a458fe21bbb18cd2a9bac2f039452b.tar.gz |
multi: remove two checks always true
Detected by Codacy
Closes #5676
Diffstat (limited to 'lib')
-rw-r--r-- | lib/multi.c | 4 |
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); |