mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
style: stricter linting
This commit is contained in:
parent
d0f7746a01
commit
2eb50dec69
12 changed files with 47 additions and 27 deletions
|
@ -280,21 +280,20 @@ class Reference {
|
|||
/// Repository where a reference resides.
|
||||
Repository get owner => Repository(bindings.owner(_refPointer));
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return (other is Reference) &&
|
||||
bindings.compare(
|
||||
ref1Pointer: _refPointer,
|
||||
ref2Pointer: other._refPointer,
|
||||
);
|
||||
/// Compares two references.
|
||||
bool equals(Reference other) {
|
||||
return bindings.compare(
|
||||
ref1Pointer: _refPointer,
|
||||
ref2Pointer: other._refPointer,
|
||||
);
|
||||
}
|
||||
|
||||
/// Compares two references.
|
||||
bool notEquals(Reference other) => !equals(other);
|
||||
|
||||
/// Releases memory allocated for reference object.
|
||||
void free() => bindings.free(_refPointer);
|
||||
|
||||
@override // coverage:ignore-line
|
||||
int get hashCode => _refPointer.address.hashCode; // coverage:ignore-line
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Reference{name: $name, target: $target, type: $type, '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue