refactor: use loops inside list literals (#60)

This commit is contained in:
Aleksey Kulikov 2022-05-25 12:16:40 +03:00 committed by GitHub
parent c35d336a56
commit ae2aef5e2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 65 additions and 106 deletions

View file

@ -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.