Remove assertion that wasn’t valid in some situations. Fix #283.

This commit is contained in:
Brent Simmons 2017-12-29 10:13:11 -08:00
parent 31c7d0aa34
commit 8f9575ee84

View File

@ -354,10 +354,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
return result return result
} }
if feedUnreadCount != feed.unreadCount { feed.unreadCount = feedUnreadCount
assertionFailure("Expected feed.unreadCount \(feed.unreadCount) to equal number of fetched unread articles \(feedUnreadCount).")
feed.unreadCount = feedUnreadCount
}
} }
public func fetchUnreadCountForToday(_ callback: @escaping (Int) -> Void) { public func fetchUnreadCountForToday(_ callback: @escaping (Int) -> Void) {