summaryrefslogtreecommitdiff
path: root/src/libgit2/repository.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgit2/repository.c')
-rw-r--r--src/libgit2/repository.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libgit2/repository.c b/src/libgit2/repository.c
index 105ea647f..0d149a626 100644
--- a/src/libgit2/repository.c
+++ b/src/libgit2/repository.c
@@ -3346,13 +3346,11 @@ int git_repository__shallow_roots(git_array_oid_t *out, git_repository *repo) {
if (!repo->shallow_grafts && (error = load_grafts(repo)) < 0)
return error;
- if ((error = git_grafts_refresh(repo->shallow_grafts)) < 0) {
+ if ((error = git_grafts_refresh(repo->shallow_grafts)) < 0)
return error;
- }
- if ((error = git_grafts_get_oids(out, repo->shallow_grafts)) < 0) {
+ if ((error = git_grafts_get_oids(out, repo->shallow_grafts)) < 0)
return error;
- }
return 0;
}