Commit 12f9ea4
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>1 parent 3dd4fb1 commit 12f9ea4
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | | - | |
| 272 | + | |
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
280 | | - | |
281 | 279 | | |
282 | 280 | | |
283 | 281 | | |
| |||
375 | 373 | | |
376 | 374 | | |
377 | 375 | | |
378 | | - | |
| 376 | + | |
379 | 377 | | |
380 | 378 | | |
381 | 379 | | |
382 | 380 | | |
383 | 381 | | |
384 | 382 | | |
385 | 383 | | |
386 | | - | |
387 | | - | |
388 | 384 | | |
389 | 385 | | |
390 | 386 | | |
| |||
590 | 586 | | |
591 | 587 | | |
592 | 588 | | |
593 | | - | |
594 | | - | |
| 589 | + | |
595 | 590 | | |
596 | 591 | | |
597 | 592 | | |
598 | 593 | | |
599 | 594 | | |
600 | 595 | | |
601 | | - | |
602 | 596 | | |
603 | 597 | | |
604 | 598 | | |
| |||
0 commit comments