From: Christopher Faulet Date: Mon, 4 May 2026 15:41:36 +0000 (+0200) Subject: CLEANUP: http-fetch: Remove duplcated return statement in smp_fetch_stver() X-Git-Tag: v3.4-dev11~48 X-Git-Url: http://www.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=e7482c4d0e99c950d15e4aababb9c7d6e585f698;p=haproxy.git CLEANUP: http-fetch: Remove duplcated return statement in smp_fetch_stver() the return statement was needlessly repeated. Let's remove the second one. --- diff --git a/src/http_fetch.c b/src/http_fetch.c index 16f2e5c93..830f65fd3 100644 --- a/src/http_fetch.c +++ b/src/http_fetch.c @@ -447,8 +447,6 @@ static int smp_fetch_stver(const struct arg *args, struct sample *smp, const cha smp->data.type = SMP_T_STR; smp->data.u.str = *vsn; return 1; - - return 1; } /* 3. Check on Status Code. We manipulate integers here. */