Remove throwing declarations
This commit is contained in:
@ -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
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user