hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1726953 - /httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/sync/MinimalClientExec.java
Date Wed, 27 Jan 2016 08:24:45 GMT
Author: ggregory
Date: Wed Jan 27 08:24:45 2016
New Revision: 1726953

URL: http://svn.apache.org/viewvc?rev=1726953&view=rev
Log:
Statement unnecessarily nested within else clause.

Modified:
    httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/sync/MinimalClientExec.java

Modified: httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/sync/MinimalClientExec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/sync/MinimalClientExec.java?rev=1726953&r1=1726952&r2=1726953&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/sync/MinimalClientExec.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/sync/MinimalClientExec.java
Wed Jan 27 08:24:45 2016
@@ -173,9 +173,8 @@ public class MinimalClientExec implement
                 if (execAware.isAborted()) {
                     releaseTrigger.close();
                     throw new RequestAbortedException("Request aborted");
-                } else {
-                    execAware.setCancellable(releaseTrigger);
                 }
+                execAware.setCancellable(releaseTrigger);
             }
 
             if (!managedConn.isOpen()) {



Mime
View raw message