Skip to content

Commit e93b7e3

Browse files
committed
revwalk: style change
Change the condition for returning 0 more in line with that we write elsewhere in the library.
1 parent 5e2a29a commit e93b7e3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/revwalk.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,8 @@ static int everybody_uninteresting(git_commit_list *orig)
489489
while (list) {
490490
git_commit_list_node *commit = list->item;
491491
list = list->next;
492-
if (commit->uninteresting)
493-
continue;
494-
495-
return 0;
492+
if (!commit->uninteresting)
493+
return 0;
496494
}
497495

498496
return 1;

0 commit comments

Comments
 (0)