From 239b58d34d323e8cf38b7be13a32dda188fec5d7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 3 Jun 2013 20:13:35 +0200 Subject: 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. --- lib/multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/multi.c b/lib/multi.c index a5a5798d2..ef4038306 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); -- cgit v1.2.3