Skip to content

Commit

Permalink
Fix notNulls
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos committed Aug 8, 2024
1 parent 21ff081 commit c1ae3bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/lib/admin/actions/send_email.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ without changing anything in it.
if (pkg!.publisherId != null) {
final list =
await publisherBackend.getAdminMemberEmails(ms.publisherId!);
emails.addAll(list.whereNotNull());
emails.addAll(list.nonNulls);
} else {
final list = await accountBackend
.lookupUsersById(pkg.uploaders ?? const <String>[]);
emails.addAll(list.map((e) => e?.email).whereNotNull());
emails.addAll(list.map((e) => e?.email).nonNulls);
}
break;
case ModerationSubjectKind.publisher:
final list =
await publisherBackend.getAdminMemberEmails(ms.publisherId!);
emails.addAll(list.whereNotNull());
emails.addAll(list.nonNulls);
break;
case ModerationSubjectKind.user:
emails.add(ms.email!);
Expand Down

0 comments on commit c1ae3bf

Please sign in to comment.