From 40bd91d884660f821909dfa6de742deb104d927e Mon Sep 17 00:00:00 2001 From: Dylan Mulligan Date: Wed, 22 Nov 2023 23:12:05 -0500 Subject: [PATCH] Remove redundant catch blocks --- .../src/main/java/edu/rit/se/nvip/ReconcilerMain.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/reconciler/src/main/java/edu/rit/se/nvip/ReconcilerMain.java b/reconciler/src/main/java/edu/rit/se/nvip/ReconcilerMain.java index 5be9a8d1..fa8e6c59 100644 --- a/reconciler/src/main/java/edu/rit/se/nvip/ReconcilerMain.java +++ b/reconciler/src/main/java/edu/rit/se/nvip/ReconcilerMain.java @@ -72,14 +72,8 @@ public static void main(String[] args) throws Exception { ReconcilerController rc = new ReconcilerController(DatabaseHelper.getInstance(), filterHandler, reconciler, nvdController, mitreController); - try{ - Messenger messenger = new Messenger(connectionFactory, inputQueueName, outputQueueName, rc); - messenger.run(); - } catch (TimeoutException e) { - logger.error("Error occurred while sending the Reconciler message to RabbitMQ: {}", e.getMessage()); - } catch (IOException e) { - logger.error(e.getMessage()); - } + Messenger messenger = new Messenger(connectionFactory, inputQueueName, outputQueueName, rc); + messenger.run(); // case "dev": // final Set devJobs = new HashSet<>(); // devJobs.add("CVE-2023-2825");