mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Don't try to insert if there are no articles.
This commit is contained in:
@@ -847,7 +847,7 @@ private extension CloudKitAccountDelegate {
|
||||
}
|
||||
|
||||
func insertSyncStatuses(articles: Set<Article>?, statusKey: SyncStatus.Key, flag: Bool) {
|
||||
guard let articles = articles else {
|
||||
guard let articles = articles, !articles.isEmpty else {
|
||||
return
|
||||
}
|
||||
let syncStatuses = articles.map { article in
|
||||
|
||||
Reference in New Issue
Block a user