Skip to content

Commit

Permalink
Use groupSet directly
Browse files Browse the repository at this point in the history
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
  • Loading branch information
arjantijms committed Oct 13, 2023
1 parent 3effd36 commit ac47012
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -98,8 +98,7 @@ public String[] authenticate(String username, String password) {
Set<String> groupSet = user.getGroups();

if (groupSet != null) {
groups = new String[groupSet.size()];
user.getGroups().toArray(groups);
groups = groupSet.toArray(String[]::new);
} else {
// Empty group list, create a zero-length group list
groups = new String[0];
Expand Down

0 comments on commit ac47012

Please sign in to comment.