Skip to content

Commit

Permalink
Remove redundant catch blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-mulligan committed Nov 23, 2023
1 parent c6a9ba7 commit 40bd91d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions reconciler/src/main/java/edu/rit/se/nvip/ReconcilerMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> devJobs = new HashSet<>();
// devJobs.add("CVE-2023-2825");
Expand Down

0 comments on commit 40bd91d

Please sign in to comment.