From f7ad11ca53d521b4945311fad6b7c2aba69623e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Felipe=20Barco=20Santa?= Date: Tue, 16 Aug 2022 10:54:43 -0500 Subject: [PATCH] Removed IOException as it was never reached --- java/com/engflow/notificationqueue/Client.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/java/com/engflow/notificationqueue/Client.java b/java/com/engflow/notificationqueue/Client.java index ee792bf8..63a3459b 100644 --- a/java/com/engflow/notificationqueue/Client.java +++ b/java/com/engflow/notificationqueue/Client.java @@ -60,9 +60,8 @@ public static void main(String[] args) throws Exception { } catch (IllegalStateException e) { System.err.println("Unable to open channel to " + args[0].split("=")[1]); throw new IllegalStateException(e); - } catch (IOException e) { - throw new IOException(e); } + try { final Metadata header = new Metadata(); Metadata.Key userKey = @@ -216,8 +215,6 @@ private static ManagedChannel createChannel( builder.sslContext(contextBuilder.build()); } catch (SSLException e) { throw new IllegalStateException(e); - } catch (IOException e) { - throw new IOException(e); } } return builder.build();