[PATCH 7/9] http-fetch: Tidy control flow in process_alternate_response
From: Mark Wooding <mdw@distorted.org.uk>
It's a bit convoluted. Tidy it up.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
---
http-fetch.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/http-fetch.c b/http-fetch.c
index f1aac14..4aa5a11 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -468,12 +468,9 @@ static void process_alternates_response(
if (!slot->in_use)
active_requests++;
slot->in_use |= SLOTUSE_ACTIVE;
- if (start_active_slot(slot)) {
- return;
- } else {
+ if (!start_active_slot(slot))
got_alternates = -1;
- return;
- }
+ return;
}
} else if (slot->curl_result != CURLE_OK) {
if (slot->http_code != 404 &&