Skip to content

Commit

Permalink
http-fetch: Tidy control flow in process_alternate_response
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Wooding authored and Junio C Hamano committed Feb 6, 2006
1 parent 7982d74 commit a3f583c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions http-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,13 +468,11 @@ static void process_alternates_response(void *callback_data)
alt_req->url);
active_requests++;
slot->in_use = 1;
if (start_active_slot(slot)) {
return;
} else {
if (!start_active_slot(slot)) {
got_alternates = -1;
slot->in_use = 0;
return;
}
return;
}
} else if (slot->curl_result != CURLE_OK) {
if (slot->http_code != 404 &&
Expand Down

0 comments on commit a3f583c

Please sign in to comment.