diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2020-03-28 15:19:13 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-03-30 11:16:41 -0700 |
commit | e3f53ce5bddc9bc58de32ec435a8695000ad9fe6 (patch) | |
tree | 91b68c022406108c0ce785d0a26e1a5549f00b16 /t/t3406-rebase-message.sh | |
parent | The second batch post 2.26 cycle (diff) | |
download | tgif-e3f53ce5bddc9bc58de32ec435a8695000ad9fe6.tar.xz |
MyFirstObjectWalk: remove unnecessary conditional statement
In the given example, `commit` cannot be `NULL` (because this is the
loop condition: if it was `NULL`, the loop body would not be entered at
all). It took this developer a moment or two to see that this is
therefore dead code.
Let's remove it, to avoid puzzling future readers.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Reviewed-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3406-rebase-message.sh')
0 files changed, 0 insertions, 0 deletions