refactor: remote pointless code in Client#getMirrorChannel
@@ -477,7 +477,6 @@ public final class Client implements AutoCloseable {
return channel;
}
- if (address != null) {
channel = ManagedChannelBuilder.forTarget(address)
.keepAliveTime(2, TimeUnit.MINUTES)
.usePlaintext()
@@ -486,11 +485,6 @@ public final class Client implements AutoCloseable {
.build();
mirrorChannels.put(address, channel);
- }
-
- if (channel == null) {
- throw new IllegalArgumentException("Mirror address does not exist");
- }
return channel;
}
@@ -527,6 +521,4 @@ public final class Client implements AutoCloseable {
private String privateKey = "";
}
}
-
-
}
