mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-07 05:19: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
|
@ -58,28 +58,36 @@ class Oid {
|
|||
0);
|
||||
}
|
||||
|
||||
bool operator <(other) {
|
||||
return (other is Oid) &&
|
||||
(bindings.compare(aPointer: _oidPointer, bPointer: other._oidPointer) ==
|
||||
-1);
|
||||
bool operator <(Oid other) {
|
||||
return bindings.compare(
|
||||
aPointer: _oidPointer,
|
||||
bPointer: other._oidPointer,
|
||||
) ==
|
||||
-1;
|
||||
}
|
||||
|
||||
bool operator <=(other) {
|
||||
return (other is Oid) &&
|
||||
(bindings.compare(aPointer: _oidPointer, bPointer: other._oidPointer) ==
|
||||
-1);
|
||||
bool operator <=(Oid other) {
|
||||
return bindings.compare(
|
||||
aPointer: _oidPointer,
|
||||
bPointer: other._oidPointer,
|
||||
) ==
|
||||
-1;
|
||||
}
|
||||
|
||||
bool operator >(other) {
|
||||
return (other is Oid) &&
|
||||
(bindings.compare(aPointer: _oidPointer, bPointer: other._oidPointer) ==
|
||||
1);
|
||||
bool operator >(Oid other) {
|
||||
return bindings.compare(
|
||||
aPointer: _oidPointer,
|
||||
bPointer: other._oidPointer,
|
||||
) ==
|
||||
1;
|
||||
}
|
||||
|
||||
bool operator >=(other) {
|
||||
return (other is Oid) &&
|
||||
(bindings.compare(aPointer: _oidPointer, bPointer: other._oidPointer) ==
|
||||
1);
|
||||
bool operator >=(Oid other) {
|
||||
return bindings.compare(
|
||||
aPointer: _oidPointer,
|
||||
bPointer: other._oidPointer,
|
||||
) ==
|
||||
1;
|
||||
}
|
||||
|
||||
@override // coverage:ignore-line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue