Skip to content

Commit ab8e35f

Browse files
committed
update: simplify table creation in DatabaseManager by removing redundant error handling
1 parent 5718e39 commit ab8e35f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/me/axeno/hommr/managers/DatabaseManager.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ public void init() {
6060

6161
homeDao = DaoManager.createDao(connectionSource, Home.class);
6262

63-
try {
64-
TableUtils.createTableIfNotExists(connectionSource, Home.class);
65-
} catch (SQLException e) {
66-
Hommr.getInstance().getLogger().log(java.util.logging.Level.SEVERE, "Failed to ensure database table", e);
67-
}
63+
TableUtils.createTableIfNotExists(connectionSource, Home.class);
6864

6965
} catch (SQLException e) {
7066
Hommr.getInstance().getLogger().log(java.util.logging.Level.SEVERE, "Failed to initialize database", e);

0 commit comments

Comments
 (0)