remove object aliasing from buildReceiversListFromActions (#19495)

* remove object aliasing from buildReceiversListFromActions

* fix linting

---------

Co-authored-by: Siddhant <86899184+Siddhanttimeline@users.noreply.github.com>
Co-authored-by: sonika-shah <58761340+sonika-shah@users.noreply.github.com>
This commit is contained in:
dechoma 2025-02-04 06:09:04 +01:00 committed by GitHub
parent 6fba495daf
commit 2308d4a4f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -338,7 +338,8 @@ public class SubscriptionUtil {
.toList(); .toList();
receiverList.addAll(getEmailOrWebhookEndpointForTeams(teams, type)); receiverList.addAll(getEmailOrWebhookEndpointForTeams(teams, type));
} else { } else {
receiverList = action.getReceivers() == null ? receiverList : action.getReceivers(); receiverList =
action.getReceivers() == null ? receiverList : new HashSet<>(action.getReceivers());
} }
// Send to Admins // Send to Admins