diff --git a/Frameworks/Account/Account.swift b/Frameworks/Account/Account.swift index 3157fb699..92b8c5251 100644 --- a/Frameworks/Account/Account.swift +++ b/Frameworks/Account/Account.swift @@ -250,7 +250,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container, return delegate.refreshProgress } - init?(dataFolder: String, type: AccountType, accountID: String, transport: Transport? = nil) { + init(dataFolder: String, type: AccountType, accountID: String, transport: Transport? = nil) { switch type { case .onMyMac: self.delegate = LocalAccountDelegate() diff --git a/Frameworks/Account/AccountManager.swift b/Frameworks/Account/AccountManager.swift index b71e981be..7c6583c7b 100644 --- a/Frameworks/Account/AccountManager.swift +++ b/Frameworks/Account/AccountManager.swift @@ -103,7 +103,7 @@ public final class AccountManager: UnreadCountProvider { abort() } - defaultAccount = Account(dataFolder: localAccountFolder, type: .onMyMac, accountID: defaultAccountIdentifier)! + defaultAccount = Account(dataFolder: localAccountFolder, type: .onMyMac, accountID: defaultAccountIdentifier) accountsDictionary[defaultAccount.accountID] = defaultAccount readAccountsFromDisk() @@ -130,7 +130,7 @@ public final class AccountManager: UnreadCountProvider { abort() } - let account = Account(dataFolder: accountFolder, type: type, accountID: accountID)! + let account = Account(dataFolder: accountFolder, type: type, accountID: accountID) accountsDictionary[accountID] = account var userInfo = [String: Any]()