]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: sample: Use explicit return for successful `json_query`s
authorTim Duesterhus <tim@bastelstu.be>
Thu, 15 Apr 2021 16:40:06 +0000 (18:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Apr 2021 18:33:38 +0000 (20:33 +0200)
commit3b9cdf1cb765d06ec9e0e6d099def245b330f12f
tree3a3e481c8207bcf57448888bb5f2aee8702e97a9
parent8f3bc8ffcad8dfd6a58722b04026771943b463d3
CLEANUP: sample: Use explicit return for successful `json_query`s

Move the `return 1` into each of the cases, instead of relying on the single
`return 1` at the bottom of the function.
src/sample.c