Skip to content

Commit 6f9a97e

Browse files
author
Stephane Landelle
committed
minor clean up
1 parent 1a8b84a commit 6f9a97e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/ning/http/client/providers/netty/request/NettyConnectListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ public void operationComplete(ChannelFuture handshakeFuture) throws Exception {
111111
writeRequest(channel, poolKey);
112112
} else {
113113
abortChannelPreemption(poolKey);
114-
ConnectException exception = new ConnectException("HostnameVerifier exception");
115-
future.abort(exception);
114+
future.abort(new ConnectException("HostnameVerifier exception"));
116115
}
117116
}
118117
}

0 commit comments

Comments
 (0)