Commit e93b7e327ab21f691ddd9358bca4a0e3da2d3fcd

Carlos Martín Nieto 2016-09-27T13:35:48

revwalk: style change Change the condition for returning 0 more in line with that we write elsewhere in the library.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/revwalk.c b/src/revwalk.c
index 244061a..ec9cc57 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;