mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-10 23:02:16 -04:00
refactor: remove unnecessary local variables
This commit is contained in:
parent
cfa5268af2
commit
20ca75639d
48 changed files with 446 additions and 237 deletions
|
@ -22,6 +22,7 @@ Pointer<git_revwalk> create(Pointer<git_repository> repo) {
|
|||
final error = libgit2.git_revwalk_new(out, repo);
|
||||
|
||||
if (error < 0) {
|
||||
calloc.free(out);
|
||||
throw LibGit2Error(libgit2.git_error_last());
|
||||
} else {
|
||||
return out.value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue