Remove assertion that wasn’t valid in some situations. Fix #283.
This commit is contained in:
parent
31c7d0aa34
commit
8f9575ee84
|
@ -354,10 +354,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
|||
return result
|
||||
}
|
||||
|
||||
if feedUnreadCount != feed.unreadCount {
|
||||
assertionFailure("Expected feed.unreadCount \(feed.unreadCount) to equal number of fetched unread articles \(feedUnreadCount).")
|
||||
feed.unreadCount = feedUnreadCount
|
||||
}
|
||||
feed.unreadCount = feedUnreadCount
|
||||
}
|
||||
|
||||
public func fetchUnreadCountForToday(_ callback: @escaping (Int) -> Void) {
|
||||
|
|
Loading…
Reference in New Issue