mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +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),
|
.filter(x => x != null),
|
||||||
);
|
);
|
||||||
|
|
||||||
recipientEMailAddresses.push(
|
if (this.meta.email) {
|
||||||
...(this.meta.email ? [this.meta.email] : []),
|
recipientEMailAddresses.push(this.meta.email);
|
||||||
...(this.meta.maintainerEmail ? [this.meta.maintainerEmail] : []),
|
}
|
||||||
);
|
|
||||||
|
if (this.meta.maintainerEmail) {
|
||||||
|
recipientEMailAddresses.push(this.meta.maintainerEmail);
|
||||||
|
}
|
||||||
|
|
||||||
return recipientEMailAddresses;
|
return recipientEMailAddresses;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue