mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 04:26:58 +00:00
refactor(backend): Resolve Nested Conditionals
This commit is contained in:
parent
789deeabac
commit
372e141bcf
1 changed files with 7 additions and 4 deletions
|
@ -93,10 +93,13 @@ export class AbuseReportNotificationService implements OnApplicationShutdown {
|
|||
.filter(x => x != null),
|
||||
);
|
||||
|
||||
recipientEMailAddresses.push(
|
||||
...(this.meta.email ? [this.meta.email] : []),
|
||||
...(this.meta.maintainerEmail ? [this.meta.maintainerEmail] : []),
|
||||
);
|
||||
if (this.meta.email) {
|
||||
recipientEMailAddresses.push(this.meta.email);
|
||||
}
|
||||
|
||||
if (this.meta.maintainerEmail) {
|
||||
recipientEMailAddresses.push(this.meta.maintainerEmail);
|
||||
}
|
||||
|
||||
return recipientEMailAddresses;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue