mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-09 00:28:53 +01:00
Remove a precondition that is no longer valid when doing async fetches.
This commit is contained in:
parent
7a204ad6ed
commit
a68ca58242
@ -886,8 +886,7 @@ private extension Account {
|
|||||||
// Now we loop through articles exactly once. This makes a huge difference.
|
// Now we loop through articles exactly once. This makes a huge difference.
|
||||||
|
|
||||||
var unreadCountStorage = [String: Int]() // [FeedID: Int]
|
var unreadCountStorage = [String: Int]() // [FeedID: Int]
|
||||||
articles.forEach { (article) in
|
for article in articles where !article.status.read {
|
||||||
precondition(!article.status.read)
|
|
||||||
unreadCountStorage[article.feedID, default: 0] += 1
|
unreadCountStorage[article.feedID, default: 0] += 1
|
||||||
}
|
}
|
||||||
feeds.forEach { (feed) in
|
feeds.forEach { (feed) in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user