mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Update precondition to make sure iCloud doesn't call the wrong update method.
This commit is contained in:
@@ -738,7 +738,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
||||
func update(webFeedIDsAndItems: [String: Set<ParsedItem>], 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
|
||||
|
||||
Reference in New Issue
Block a user