revwalk: formatting updates
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
diff --git a/src/revwalk.c b/src/revwalk.c
index 22b043b..53a08a8 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -458,23 +458,23 @@ static int get_revision(git_commit_list_node **out, git_revwalk *walk, git_commi
int error;
git_commit_list_node *commit;
- commit = git_commit_list_pop(list);
- if (!commit) {
- giterr_clear();
- return GIT_ITEROVER;
- }
-
- /*
- * If we did not run limit_list and we must add parents to the
- * list ourselves.
- */
- if (!walk->limited) {
- if ((error = add_parents_to_list(walk, commit, list)) < 0)
- return error;
- }
-
- *out = commit;
- return 0;
+ commit = git_commit_list_pop(list);
+ if (!commit) {
+ giterr_clear();
+ return GIT_ITEROVER;
+ }
+
+ /*
+ * If we did not run limit_list and we must add parents to the
+ * list ourselves.
+ */
+ if (!walk->limited) {
+ if ((error = add_parents_to_list(walk, commit, list)) < 0)
+ return error;
+ }
+
+ *out = commit;
+ return 0;
}
static int sort_in_topological_order(git_commit_list **out, git_revwalk *walk, git_commit_list *list)