Remove a precondition that is no longer valid when doing async fetches.

This commit is contained in:
Brent Simmons 2019-07-06 11:50:22 -07:00
parent 7a204ad6ed
commit a68ca58242

View File

@ -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