[REFACTOR] Remover useless catches

This commit is contained in:
AlexCatze 2022-11-19 12:49:59 +02:00
parent 1a3daa1954
commit e0415c6d64

View file

@ -247,8 +247,6 @@ private SQLUser queryUser(String sql, String value) throws SQLException {
try (ResultSet set = s.executeQuery()) {
return constructUser(set);
}
} catch (SQLException e) {
throw new SQLException(e);
}
}
@ -262,8 +260,6 @@ private List<String> queryPermissions(String sql, String value) throws SQLExcept
while (set.next())
perms.add(set.getString(permissionsPermissionColumn));
return perms;
} catch (SQLException e) {
throw new SQLException(e);
}
}
@ -277,8 +273,6 @@ private List<String> queryRolesNames(String sql, String value) throws SQLExcepti
while (set.next())
perms.add(set.getString(rolesNameColumn));
return perms;
} catch (SQLException e) {
throw new SQLException(e);
}
}