mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
style: no implicit casts and dynamic
This commit is contained in:
parent
7b14ee6b9b
commit
f3fbc80f8e
11 changed files with 49 additions and 36 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue