style: no implicit casts and dynamic

This commit is contained in:
Aleksey Kulikov 2021-10-22 17:25:06 +03:00
parent 7b14ee6b9b
commit f3fbc80f8e
11 changed files with 49 additions and 36 deletions

View file

@ -23,9 +23,11 @@ class RevParse {
repoPointer: repo.pointer,
spec: spec,
);
object = Commit(pointers[0].cast<git_commit>());
object = Commit(pointers[0].cast<git_commit>() as Pointer<git_commit>);
if (pointers.length == 2) {
reference = Reference(pointers[1].cast<git_reference>());
reference = Reference(
pointers[1].cast<git_reference>() as Pointer<git_reference>,
);
} else {
reference = null;
}