Skip to content

Commit 721111b

Browse files
committed
unused parameter
1 parent 9b033f4 commit 721111b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/src/main/java/hudson/cli/CLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public CLI(URL jenkins, ExecutorService exec) throws IOException, InterruptedExc
9595
if(clip!=null) {
9696
// connect via CLI port
9797
try {
98-
channel = connectViaCliPort(jenkins, url, clip);
98+
channel = connectViaCliPort(jenkins, clip);
9999
} catch (IOException e) {
100100
LOGGER.log(Level.FINE,"Failed to connect via CLI port. Falling back to HTTP",e);
101101
}
@@ -130,7 +130,7 @@ protected void onDead() {
130130
return ch;
131131
}
132132

133-
private Channel connectViaCliPort(URL jenkins, String url, InetSocketAddress endpoint) throws IOException {
133+
private Channel connectViaCliPort(URL jenkins, InetSocketAddress endpoint) throws IOException {
134134
LOGGER.fine("Trying to connect directly via TCP/IP to "+endpoint);
135135
Socket s = new Socket(endpoint.getHostName(),endpoint.getPort());
136136
DataOutputStream dos = new DataOutputStream(s.getOutputStream());

0 commit comments

Comments
 (0)