Skip to content

Commit 708b463

Browse files
author
François
committed
Issues/300: Remove useless null check
1 parent b689446 commit 708b463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/main/java/io/kafbat/ui/service/rbac/extractor/OauthAuthorityExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ private Set<String> extractUsernameRoles(AccessControlService acs, DefaultOAuth2
5959
.filter(s -> s.getProvider().equals(Provider.OAUTH))
6060
.filter(s -> s.getType().equals("user"))
6161
.peek(s -> log.trace("[{}] matches [{}]? [{}]", s.getValue(), principalName,
62-
principalName != null && principalName.matches(s.getValue())))
63-
.anyMatch(s -> principalName != null && principalName.matches(s.getValue())))
62+
principalName.matches(s.getValue())))
63+
.anyMatch(s -> principalName.matches(s.getValue())))
6464
.map(Role::getName)
6565
.collect(Collectors.toSet());
6666

0 commit comments

Comments
 (0)