summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2016-09-27 13:35:48 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2016-10-06 11:04:55 +0200
commite93b7e327ab21f691ddd9358bca4a0e3da2d3fcd (patch)
treeaaf94acd4129130c242ee4d1327d6db0908e0dbb
parent5e2a29a78c19b110dace4018f0c077d0fb476a53 (diff)
downloadlibgit2-e93b7e327ab21f691ddd9358bca4a0e3da2d3fcd.tar.gz
revwalk: style change
Change the condition for returning 0 more in line with that we write elsewhere in the library.
-rw-r--r--src/revwalk.c6
1 files changed, 2 insertions, 4 deletions
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;