chore: migrate from pedantic to lints package

This commit is contained in:
Aleksey Kulikov 2021-07-20 16:59:26 +03:00
parent 2c28fddcec
commit 145af3054d
6 changed files with 8 additions and 7 deletions

View file

@ -365,9 +365,9 @@ void setWorkdir(
bool updateGitlink,
) {
final workdir = path.toNativeUtf8().cast<Int8>();
final update_gitlink = updateGitlink ? 1 : 0;
final updateGitlinkC = updateGitlink ? 1 : 0;
final error =
libgit2.git_repository_set_workdir(repo, workdir, update_gitlink);
libgit2.git_repository_set_workdir(repo, workdir, updateGitlinkC);
calloc.free(workdir);
if (error < 0) {

View file

@ -8,7 +8,6 @@ class LibGit2Error {
@override
String toString() {
final errorMessage = errorPointer.ref.message.cast<Utf8>().toDartString();
return '$errorMessage';
return errorPointer.ref.message.cast<Utf8>().toDartString();
}
}

View file

@ -55,4 +55,7 @@ class Oid {
return (other is Oid) &&
(bindings.compare(_oidPointer, other._oidPointer) == 1);
}
@override
int get hashCode => _oidPointer.address.hashCode;
}