refactor: remove unnecessary git_libgit2_init()

This commit is contained in:
Aleksey Kulikov 2021-09-27 12:05:18 +03:00
parent b5561212e0
commit b15b56f0ae
5 changed files with 9 additions and 14 deletions

View file

@ -13,9 +13,7 @@ class Diff {
/// pointer to diff object in memory.
///
/// Should be freed with `free()` to release allocated memory.
Diff(this._diffPointer) {
libgit2.git_libgit2_init();
}
Diff(this._diffPointer);
Diff.parse(String content) {
libgit2.git_libgit2_init();