Skip to content

Commit 7414b97

Browse files
authored
Removed IOException as it was never reached (#31)
1 parent 6c1bc9f commit 7414b97

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

java/com/engflow/notificationqueue/Client.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ public static void main(String[] args) throws Exception {
6060
} catch (IllegalStateException e) {
6161
System.err.println("Unable to open channel to " + args[0].split("=")[1]);
6262
throw new IllegalStateException(e);
63-
} catch (IOException e) {
64-
throw new IOException(e);
6563
}
64+
6665
try {
6766
final Metadata header = new Metadata();
6867
Metadata.Key<String> userKey =
@@ -216,8 +215,6 @@ private static ManagedChannel createChannel(
216215
builder.sslContext(contextBuilder.build());
217216
} catch (SSLException e) {
218217
throw new IllegalStateException(e);
219-
} catch (IOException e) {
220-
throw new IOException(e);
221218
}
222219
}
223220
return builder.build();

0 commit comments

Comments
 (0)