Skip to content

Commit

Permalink
[Remove] unnecessary try block
Browse files Browse the repository at this point in the history
  • Loading branch information
sysnote8main committed Oct 20, 2024
1 parent b2db51d commit a2459f3
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ public void run() {
plugin.getLogger().log(Level.WARNING, "Failed to pass health check", e);
}
plugin.getLogger().info("Reconnecting to database...");
try {
plugin.sql.reconnect();
plugin.getLogger().info("Successfully to reconnect database!");
} catch (SQLException ex) {
plugin.getLogger().log(Level.SEVERE, "Failed to reconnect database", ex);
}
plugin.sql.reconnect();
plugin.getLogger().info("Successfully to reconnect database!");
}
}

0 comments on commit a2459f3

Please sign in to comment.