diff --git a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift index c8489c223..b0300e5fb 100644 --- a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift @@ -428,7 +428,7 @@ final class CloudKitAccountDelegate: AccountDelegate { private func restoreFolder(for account: Account, folder: Folder, completion: @escaping (Result) -> Void) { guard let name = folder.name else { - completion(.failure(LocalAccountDelegateError.invalidParameter)) + completion(.failure(AccountError.invalidParameter)) return } diff --git a/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift b/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift index 730a3c878..3453c597b 100644 --- a/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift +++ b/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift @@ -14,10 +14,6 @@ import ArticlesDatabase import RSWeb import Secrets -public enum LocalAccountDelegateError: String, Error { - case invalidParameter = "An invalid parameter was used." -} - final class LocalAccountDelegate: AccountDelegate { weak var account: Account?