Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jul 31, 2023
1 parent 83d5b3b commit 884b4f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/submodules.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ SEXP R_git_submodule_list(SEXP ptr){
"url", PROTECT(Rf_allocVector(STRSXP, n)),
"branch", PROTECT(Rf_allocVector(STRSXP, n)),
"head", PROTECT(Rf_allocVector(STRSXP, n))));
UNPROTECT(5);
git_submodule_foreach(repo, submodule_fill, df);
UNPROTECT(1);
UNPROTECT(6);
return df;
}

Expand Down

0 comments on commit 884b4f7

Please sign in to comment.