From: Daniel Stenberg Date: Mon, 3 Jun 2013 18:13:35 +0000 (+0200) Subject: multi_runsingle: switch an if() condition for readability X-Git-Tag: curl-7_31_0~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=239b58d34d323e8cf38b7be13a32dda188fec5d7;p=thirdparty%2Fcurl.git multi_runsingle: switch an if() condition for readability ... because there's an identical check right next to it so using the operators in the check in the same order increases readability. --- diff --git a/lib/multi.c b/lib/multi.c index a5a5798d2e..ef4038306c 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -1529,7 +1529,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, else follow = FOLLOW_RETRY; easy->result = Curl_done(&easy->easy_conn, CURLE_OK, FALSE); - if(easy->result == CURLE_OK) { + if(CURLE_OK == easy->result) { easy->result = Curl_follow(data, newurl, follow); if(CURLE_OK == easy->result) { multistate(easy, CURLM_STATE_CONNECT);