Skip to content

Commit 7780604

Browse files
committed
Merge branch 'js/walk-doc-optim'
Code cleanup. * js/walk-doc-optim: MyFirstObjectWalk: remove unnecessary conditional statement
2 parents d0eb895 + e3f53ce commit 7780604

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Documentation/MyFirstObjectWalk.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,6 @@ static void walken_commit_walk(struct rev_info *rev)
357357
...
358358

359359
while ((commit = get_revision(rev))) {
360-
if (!commit)
361-
continue;
362-
363360
strbuf_reset(&prettybuf);
364361
pp_commit_easy(CMIT_FMT_ONELINE, commit, &prettybuf);
365362
puts(prettybuf.buf);

0 commit comments

Comments
 (0)