From d27b0cb2a0a495186e279dc7072987cd793bc230 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 29 Apr 2020 20:06:14 -0500 Subject: [PATCH] Don't try to insert if there are no articles. --- Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift index d448bbdec..12d2e6f13 100644 --- a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift @@ -847,7 +847,7 @@ private extension CloudKitAccountDelegate { } func insertSyncStatuses(articles: Set
?, statusKey: SyncStatus.Key, flag: Bool) { - guard let articles = articles else { + guard let articles = articles, !articles.isEmpty else { return } let syncStatuses = articles.map { article in