Skip to content

Commit

Permalink
Replace String.equals with length
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 21, 2023
1 parent 1ee1ccd commit 1357cc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public Response keycloakInitiatedBrowserLogout(KeycloakSession session,
log.infof("keycloakInitiatedBrowserLogout");
String logoutUrl = getLogoutUrl();

if (logoutUrl == null || logoutUrl.trim().equals("")) {
if (logoutUrl == null || logoutUrl.length() == 0) {
return null;
}

Expand Down

0 comments on commit 1357cc3

Please sign in to comment.