From bdcda6315ff459480d27ae3c4857f2453ead5ee7 Mon Sep 17 00:00:00 2001 From: Nidhi Date: Fri, 22 Sep 2023 16:00:21 -0700 Subject: [PATCH] ELY-2609 : Replace if-then-else statement with a single return statement in OidcPrincipal --- .../java/org/wildfly/security/http/oidc/OidcPrincipal.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcPrincipal.java b/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcPrincipal.java index dc26a5c49be..b506b6b7596 100644 --- a/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcPrincipal.java +++ b/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcPrincipal.java @@ -50,9 +50,7 @@ public boolean equals(Object o) { OidcPrincipal that = (OidcPrincipal) o; - if (! name.equals(that.name)) return false; - - return true; + return name.equals(that.name); } @Override