]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: http-fetch: Remove duplcated return statement in smp_fetch_stver()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 4 May 2026 15:41:36 +0000 (17:41 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2026 16:36:04 +0000 (18:36 +0200)
the return statement was needlessly repeated. Let's remove the second one.

src/http_fetch.c

index 16f2e5c937297b2ed166f9f05f6d4defb7278acf..830f65fd32a8e437239f4f97edc9f564e849bf30 100644 (file)
@@ -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. */