mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor: use loops inside list literals (#60)
This commit is contained in:
parent
c35d336a56
commit
ae2aef5e2e
13 changed files with 65 additions and 106 deletions
|
@ -208,11 +208,7 @@ class Tag extends Equatable {
|
|||
/// Tagger (author) of a tag if there is one.
|
||||
Signature? get tagger {
|
||||
final sigPointer = bindings.tagger(_tagPointer);
|
||||
if (sigPointer != nullptr) {
|
||||
return Signature(sigPointer);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
return sigPointer != nullptr ? Signature(sigPointer) : null;
|
||||
}
|
||||
|
||||
/// Releases memory allocated for tag object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue