multi_runsingle: switch an if() condition for readability
authorDaniel Stenberg <daniel@haxx.se>
Mon, 3 Jun 2013 18:13:35 +0000 (20:13 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Jun 2013 18:23:01 +0000 (20:23 +0200)
... 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

index a5a5798d2e51c67e37dd82bb19f6c50584f990f0..ef4038306c9c822cb6b71d8150279f4dfcbdb27d 100644 (file)
@@ -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);