Merge branch 'jk/still-interesting'
authorJunio C Hamano <gitster@pobox.com>
Fri, 17 Jul 2015 17:44:56 +0000 (10:44 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Jul 2015 17:44:56 +0000 (10:44 -0700)
Code clean-up.

* jk/still-interesting:
  revision.c: remove unneeded check for NULL

revision.c

index 3ff8723..ab97ffd 100644 (file)
@@ -361,8 +361,8 @@ static int everybody_uninteresting(struct commit_list *orig,
                list = list->next;
                if (commit->object.flags & UNINTERESTING)
                        continue;
-               if (interesting_cache)
-                       *interesting_cache = commit;
+
+               *interesting_cache = commit;
                return 0;
        }
        return 1;