From f8d6cb48dc52861b91d333ffce6d67ec30e8c279 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 16 Sep 2018 12:46:50 -0700 Subject: [PATCH] Remove instance where Feed equality was expected to be pointer equality, which is no longer true. --- Frameworks/Account/Folder.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Frameworks/Account/Folder.swift b/Frameworks/Account/Folder.swift index acd72b241..25fd7ee75 100644 --- a/Frameworks/Account/Folder.swift +++ b/Frameworks/Account/Folder.swift @@ -156,16 +156,9 @@ private extension Folder { } func childrenContain(_ feed: Feed) -> Bool { - return children.contains(where: { (object) -> Bool in - if object === feed { - return true - } if let oneFeed = object as? Feed { - if oneFeed.feedID == feed.feedID { - assertionFailure("Expected feeds to match by pointer equality rather than by feedID.") - return true - } + return oneFeed == feed } return false })