diff --git a/src/revwalk.c b/src/revwalk.c index 244061a42..ec9cc576a 100644 --- a/src/revwalk.c +++ b/src/revwalk.c @@ -489,10 +489,8 @@ static int everybody_uninteresting(git_commit_list *orig) while (list) { git_commit_list_node *commit = list->item; list = list->next; - if (commit->uninteresting) - continue; - - return 0; + if (!commit->uninteresting) + return 0; } return 1;