mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-27 09:21:21 +01:00
Don't try to insert if there are no articles.
This commit is contained in:
parent
e83694ceb0
commit
d27b0cb2a0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user