Remove instance where Feed equality was expected to be pointer equality, which is no longer true.

This commit is contained in:
Brent Simmons 2018-09-16 12:46:50 -07:00
parent 4010b4cb2a
commit f8d6cb48dc
1 changed files with 1 additions and 8 deletions

View File

@ -156,16 +156,9 @@ private extension Folder {
} }
func childrenContain(_ feed: Feed) -> Bool { func childrenContain(_ feed: Feed) -> Bool {
return children.contains(where: { (object) -> Bool in return children.contains(where: { (object) -> Bool in
if object === feed {
return true
}
if let oneFeed = object as? Feed { if let oneFeed = object as? Feed {
if oneFeed.feedID == feed.feedID { return oneFeed == feed
assertionFailure("Expected feeds to match by pointer equality rather than by feedID.")
return true
}
} }
return false return false
}) })