1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 04:04:16 +00:00

refactor(backend): Resolve Nested Conditionals

This commit is contained in:
Lilly Schramm
2025-06-18 20:25:32 +02:00
parent 789deeabac
commit 372e141bcf

View File

@@ -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;
}