mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-01 22:14:01 +03:00
[REFACTOR] Remover useless catches
This commit is contained in:
parent
1a3daa1954
commit
e0415c6d64
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue