Skip to content

Commit

Permalink
Use set for roles
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Nuyanzin <snuyanzin@gmail.com>
  • Loading branch information
snuyanzin committed Nov 20, 2023
1 parent 1b2bc6a commit b75b830
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/io/aiven/klaw/service/MailUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
import io.aiven.klaw.model.enums.MailType;
import io.aiven.klaw.model.enums.PermissionType;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -635,7 +637,7 @@ private List<String> getAllUsersWithPermissionToApproveRequest(
Map<String, List<String>> rolesToPermissions =
manageDatabase.getRolesPermissionsPerTenant(tenantId);

List<String> roles = new ArrayList<>();
Set<String> roles = new HashSet<>();

rolesToPermissions.forEach(
(k, v) -> {
Expand Down

0 comments on commit b75b830

Please sign in to comment.