Skip to content

Commit 44117e0

Browse files
author
Andy Delcambre
committed
Add braces for if statements
1 parent 5d3c4da commit 44117e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/rugged/rugged_tree.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ static int rugged__treecount_cb(const char *root, const git_tree_entry *entry, v
103103
{
104104
struct rugged_treecount_cb_payload *payload = data;
105105

106-
if (payload->limit >= 0 && payload->count >= payload->limit)
106+
if (payload->limit >= 0 && payload->count >= payload->limit) {
107107
return -1;
108-
else if(git_tree_entry_type(entry) == GIT_OBJ_TREE)
108+
} else if(git_tree_entry_type(entry) == GIT_OBJ_TREE) {
109109
return 0;
110-
else {
110+
} else {
111111
++(payload->count);
112112
return 1;
113113
}

0 commit comments

Comments
 (0)