mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
style: use Object instead of dynamic
This commit is contained in:
parent
1972c6d1ab
commit
beed516c89
13 changed files with 84 additions and 56 deletions
|
@ -97,7 +97,11 @@ class Blob {
|
|||
interhunkLines: interhunkLines,
|
||||
);
|
||||
|
||||
return Patch(result['patch'], result['a'], result['b']);
|
||||
return Patch(
|
||||
result['patch'] as Pointer<git_patch>,
|
||||
result['a'],
|
||||
result['b'],
|
||||
);
|
||||
}
|
||||
|
||||
/// Directly generate a [Patch] from the difference between the blob and a buffer.
|
||||
|
@ -123,7 +127,11 @@ class Blob {
|
|||
interhunkLines: interhunkLines,
|
||||
);
|
||||
|
||||
return Patch(result['patch'], result['a'], result['b']);
|
||||
return Patch(
|
||||
result['patch'] as Pointer<git_patch>,
|
||||
result['a'],
|
||||
result['b'],
|
||||
);
|
||||
}
|
||||
|
||||
/// Releases memory allocated for blob object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue