You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/07/01 08:50:09 UTC

[httpcomponents-client] 01/02: Remove redundant if

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit 8d9b52abd1c9953940a3f4a6f41aa83657d6b064
Author: jkmcl <jkmcl>
AuthorDate: Fri Jul 1 00:39:46 2022 +0800

    Remove redundant if
---
 .../apache/hc/client5/http/impl/DefaultAuthenticationStrategy.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultAuthenticationStrategy.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultAuthenticationStrategy.java
index a25f563be..a12b137ff 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultAuthenticationStrategy.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultAuthenticationStrategy.java
@@ -97,9 +97,7 @@ public class DefaultAuthenticationStrategy implements AuthenticationStrategy {
             authPrefs = DEFAULT_SCHEME_PRIORITY;
         }
         if (LOG.isDebugEnabled()) {
-            if (LOG.isDebugEnabled()) {
-                LOG.debug("{} Authentication schemes in the order of preference: {}", exchangeId, authPrefs);
-            }
+            LOG.debug("{} Authentication schemes in the order of preference: {}", exchangeId, authPrefs);
         }
 
         for (final String schemeName: authPrefs) {