diff options
author | Chandra Pratap <chandrapratap3519@gmail.com> | 2024-08-13 20:04:49 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 10:08:03 -0700 |
commit | 12f9ea473f00384147e334ff1f05c8f3b2fe1a78 (patch) | |
tree | 12e5bb649118800856beb8f43f66d8f9f9aaf270 /t/unit-tests/t-oid-array.c | |
parent | 3dd4fb13a080ba9cbcf047e94b7fc4ed35b6153e (diff) |
t-reftable-readwrite: use 'for' in place of infinite 'while' loops
Using a for loop with an empty conditional statement is more concise
and easier to read than an infinite 'while' loop in instances
where we need a loop variable. Hence, replace such instances of a
'while' loop with the equivalent 'for' loop.
Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-oid-array.c')
0 files changed, 0 insertions, 0 deletions