]> git.ipfire.org Git - thirdparty/git.git/commit
clar: avoid using the comma operator unnecessarily
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 27 Mar 2025 11:52:57 +0000 (11:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 29 Mar 2025 00:38:09 +0000 (17:38 -0700)
commit0fbbb2c9f595a8460a7fd7c72d4e95081eb96b08
treea443d551b0ea0c5b5b1d153ede3ea6c826ed50e8
parent22542b6f9ef24d1058b01d7e9f837607728de710
clar: avoid using the comma operator unnecessarily

The comma operator is a somewhat obscure C feature that is often used by
mistake and can even cause unintentional code flow. In this instance, it
makes the code harder to read than necessary, too. Better use a
semicolon instead.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/clar/clar/fs.h