Skip to content

Commit

Permalink
Statement unnecessarily nested within else clause.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1726954 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
garydgregory committed Jan 27, 2016
1 parent 5868cee commit 69b509a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ public CloseableHttpResponse execute(
if (execAware.isAborted()) {
connRequest.cancel();
throw new RequestAbortedException("Request aborted");
} else {
execAware.setCancellable(connRequest);
}
execAware.setCancellable(connRequest);
}

final RequestConfig config = context.getRequestConfig();
Expand Down Expand Up @@ -228,9 +227,8 @@ public CloseableHttpResponse execute(
// connection not needed and (assumed to be) in re-usable state
releaseTrigger.releaseConnection();
return new HttpResponseProxy(response, null);
} else {
return new HttpResponseProxy(response, releaseTrigger);
}
return new HttpResponseProxy(response, releaseTrigger);
} catch (final ConnectionShutdownException ex) {
final InterruptedIOException ioex = new InterruptedIOException(
"Connection has been shut down");
Expand Down

0 comments on commit 69b509a

Please sign in to comment.