Remove throwing declarations

This commit is contained in:
Christoph Hagen
2023-01-31 22:17:15 +01:00
parent 5381b28386
commit 0a5139fd39
4 changed files with 6 additions and 6 deletions

View File

@ -27,8 +27,8 @@ final class SQLiteDatabase {
private let mail: MailConfig?
init(db: Database, mail: Configuration.EMail?) throws {
self.tables = try TableManagement(db: db)
init(db: Database, mail: Configuration.EMail?) {
self.tables = TableManagement(db: db)
guard let mail else {
self.mail = nil
return

View File

@ -17,7 +17,7 @@ final class TableManagement {
Load the tables from a file in the storage folder
- Throws: Errors when the file could not be read
*/
init(db: Database) throws {
init(db: Database) {
Table.query(on: db).with(\.$players).all().whenSuccess { loadedTables in
for table in loadedTables {
guard !table.players.isEmpty else {