Remove instance where Feed equality was expected to be pointer equality, which is no longer true.
This commit is contained in:
parent
4010b4cb2a
commit
f8d6cb48dc
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue