summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-04-22 13:42:45 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-22 13:42:45 -0700
commit7780604ac200b763af71efba0eb7c880f39fd152 (patch)
tree41ac0884b585619aaf496f5f89909fd58e71a5bd /Documentation
parentMerge branch 'pb/rebase-doc-typofix' (diff)
parentMyFirstObjectWalk: remove unnecessary conditional statement (diff)
downloadtgif-7780604ac200b763af71efba0eb7c880f39fd152.tar.xz
Merge branch 'js/walk-doc-optim'
Code cleanup. * js/walk-doc-optim: MyFirstObjectWalk: remove unnecessary conditional statement
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/MyFirstObjectWalk.txt3
1 files changed, 0 insertions, 3 deletions
diff --git a/Documentation/MyFirstObjectWalk.txt b/Documentation/MyFirstObjectWalk.txt
index aa828dfdc4..c3f2d1a831 100644
--- a/Documentation/MyFirstObjectWalk.txt
+++ b/Documentation/MyFirstObjectWalk.txt
@@ -357,9 +357,6 @@ static void walken_commit_walk(struct rev_info *rev)
...
while ((commit = get_revision(rev))) {
- if (!commit)
- continue;
-
strbuf_reset(&prettybuf);
pp_commit_easy(CMIT_FMT_ONELINE, commit, &prettybuf);
puts(prettybuf.buf);