From 8f9575ee847eca735caad5302f770f1fdf0604dd Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 29 Dec 2017 10:13:11 -0800 Subject: [PATCH] =?UTF-8?q?Remove=20assertion=20that=20wasn=E2=80=99t=20va?= =?UTF-8?q?lid=20in=20some=20situations.=20Fix=20#283.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frameworks/Account/Account.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Frameworks/Account/Account.swift b/Frameworks/Account/Account.swift index 20f07c257..47d63c9d8 100644 --- a/Frameworks/Account/Account.swift +++ b/Frameworks/Account/Account.swift @@ -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) {