From e93b7e327ab21f691ddd9358bca4a0e3da2d3fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Tue, 27 Sep 2016 13:35:48 +0200 Subject: [PATCH] revwalk: style change Change the condition for returning 0 more in line with that we write elsewhere in the library. --- src/revwalk.c | 6 ++---- 1 file 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;