refactor: remove unnecessary git_libgit2_init()

This commit is contained in:
Aleksey Kulikov 2021-09-01 16:59:07 +03:00
parent ce9384cac9
commit 6bd04bb09d
5 changed files with 1 additions and 8 deletions

View file

@ -17,7 +17,6 @@ class Oid {
///
/// Throws a [LibGit2Error] if error occured.
Oid.fromSHA(Repository repository, String sha) {
libgit2.git_libgit2_init();
if (sha.length == 40) {
_oidPointer = bindings.fromSHA(sha);
} else {