http-fetch: Tidy control flow in process_alternate_response
It's a bit convoluted. Tidy it up. Signed-off-by: Mark Wooding <mdw@distorted.org.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Mark Wooding committed
Feb 1, 2006 at 11:44 UTC
a3f583cbf7929f290a47dc0a952ee6b0faa9d279
1 file changed
+2
-4
http-fetch.c
+2
-4
@@ -468,13 +468,11 @@ static void process_alternates_response(void *callback_data)
468
alt_req->url);
469
active_requests++;
470
slot->in_use = 1;
471
- if (start_active_slot(slot)) {
472
- return;
473
- } else {
471
+ if (!start_active_slot(slot)) {
472
got_alternates = -1;
473
slot->in_use = 0;
476
- return;
474
}
475
+ return;
476
}
477
} else if (slot->curl_result != CURLE_OK) {
478
if (slot->http_code != 404 &&