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:08 UTC

[httpcomponents-client] branch master updated (9b63f12b8 -> 69e2ed6c4)

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

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


    from 9b63f12b8 Bump actions/dependency-review-action from 1 to 2
     new 8d9b52abd Remove redundant if
     new 69e2ed6c4 Remove unused local variable

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/hc/client5/http/impl/DefaultAuthenticationStrategy.java    | 4 +---
 .../java/org/apache/hc/client5/http/impl/async/AsyncConnectExec.java  | 1 -
 2 files changed, 1 insertion(+), 4 deletions(-)


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

Posted by ol...@apache.org.
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) {


[httpcomponents-client] 02/02: Remove unused local variable

Posted by ol...@apache.org.
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 69e2ed6c41fe7a5524a8851b6b5c51568915150e
Author: jkmcl <jkmcl>
AuthorDate: Fri Jul 1 00:54:14 2022 +0800

    Remove unused local variable
---
 .../java/org/apache/hc/client5/http/impl/async/AsyncConnectExec.java     | 1 -
 1 file changed, 1 deletion(-)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncConnectExec.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncConnectExec.java
index 17d75c632..77c20db0f 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncConnectExec.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncConnectExec.java
@@ -373,7 +373,6 @@ public final class AsyncConnectExec implements AsyncExecChainHandler {
             final AsyncExecChain chain,
             final AsyncExecCallback asyncExecCallback) throws HttpException, IOException {
 
-        final AsyncExecRuntime execRuntime = scope.execRuntime;
         final HttpClientContext clientContext = scope.clientContext;
 
         final AuthExchange proxyAuthExchange = proxy != null ? clientContext.getAuthExchange(proxy) : new AuthExchange();