From 8294043df29c8c8e75f39a8f85fb1af65c8cf35d Mon Sep 17 00:00:00 2001 From: srishti Date: Fri, 22 Sep 2023 15:12:02 -0700 Subject: [PATCH] ELY-2618 Replacing if-else statement by return statement in OidcClientConfiguration.java --- .../wildfly/security/http/oidc/OidcClientConfiguration.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcClientConfiguration.java b/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcClientConfiguration.java index db872b30a89..3e18fb4eb6d 100644 --- a/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcClientConfiguration.java +++ b/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcClientConfiguration.java @@ -419,10 +419,7 @@ public void setSSLRequired(SSLRequired sslRequired) { } public boolean isSSLEnabled() { - if (SSLRequired.NONE == sslRequired) { - return false; - } - return true; + return SSLRequired.NONE != sslRequired; } public int getConfidentialPort() {