]> git.kaiwu.me - haproxy.git/commit
CLEANUP: stream: Reduce duplication in `stream_generate_unique_id()`
authorTim Duesterhus <tim@bastelstu.be>
Fri, 3 Apr 2026 21:28:59 +0000 (23:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 13 Apr 2026 12:02:29 +0000 (14:02 +0200)
commit44a461a19f55fc94952db8ad64e4a611cf09eb65
treee2f8664ce0159bf82aacaf48cbc596d6b57c044c
parentf778e6feb016e72b446710d85cf4d8eea54da858
CLEANUP: stream: Reduce duplication in `stream_generate_unique_id()`

The return value of the `if()` and `else` branch is identical. We can just move
it out of conditional paths.

Reviewed-by: Volker Dusch <github@wallbash.com>
src/stream.c