]> git.ipfire.org Git - thirdparty/git.git/commit
trace2: avoid "futile conditional"
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 15 May 2025 13:11:46 +0000 (13:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 May 2025 20:46:47 +0000 (13:46 -0700)
commitfc451e6ea85310725532cbdbc280f8a56a7ec7df
tree003e2eba20df2e7110dd02083fa6b9b40f4edb7b
parent3d39bcd98ecce0fce77b00fd680bd245b2161ddf
trace2: avoid "futile conditional"

CodeQL reports empty `if` blocks that only contain a comment as "futile
conditional". The comment talks about potential plans to turn this into
a warning, but that seems not to have been necessary. Replace the entire
construct with a concise comment.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace2/tr2_tmr.c