diff --git a/Frameworks/Account/Account.swift b/Frameworks/Account/Account.swift index d1272f17f..dfa0ea452 100644 --- a/Frameworks/Account/Account.swift +++ b/Frameworks/Account/Account.swift @@ -886,8 +886,7 @@ private extension Account { // Now we loop through articles exactly once. This makes a huge difference. var unreadCountStorage = [String: Int]() // [FeedID: Int] - articles.forEach { (article) in - precondition(!article.status.read) + for article in articles where !article.status.read { unreadCountStorage[article.feedID, default: 0] += 1 } feeds.forEach { (feed) in