Merge branch 'mac-candidate'

This commit is contained in:
Brent Simmons 2019-07-06 11:54:14 -07:00
commit fe5570fbea
2 changed files with 2 additions and 3 deletions

View File

@ -934,8 +934,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

View File

@ -13,7 +13,7 @@ import UIKit
#elseif os(watchOS)
import WatchKit
#elseif os(OSX)
import Cocoa
import AppKit
#endif
public class ColorHash {