From 9a1b7f52250b0595df3db05fe432869cd33b2f63 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 1 Apr 2020 09:19:51 -0500 Subject: [PATCH] Update precondition to make sure iCloud doesn't call the wrong update method. --- Frameworks/Account/Account.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/Account/Account.swift b/Frameworks/Account/Account.swift index a487953bb..64a872d49 100644 --- a/Frameworks/Account/Account.swift +++ b/Frameworks/Account/Account.swift @@ -738,7 +738,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container, func update(webFeedIDsAndItems: [String: Set], defaultRead: Bool, completion: @escaping DatabaseCompletionBlock) { // Used only by syncing systems. precondition(Thread.isMainThread) - precondition(type != .onMyMac) // TODO: also make sure type != iCloud + precondition(type != .onMyMac && type != .cloudKit) guard !webFeedIDsAndItems.isEmpty else { completion(nil) return