Simplify representedObjectsContainsAnyPseudoFeed.

This commit is contained in:
Brent Simmons
2019-05-19 20:49:24 -07:00
parent 48e19c23a7
commit 4d27e5a338

View File

@@ -943,15 +943,7 @@ private extension TimelineViewController {
}
func representedObjectsContainsAnyPseudoFeed() -> Bool {
guard let representedObjects = representedObjects else {
return false
}
for representedObject in representedObjects {
if representedObject is PseudoFeed {
return true
}
}
return false
return representedObjects?.contains(where: { $0 is PseudoFeed}) ?? false
}
func representedObjectsContainsAnyFeed(_ feeds: Set<Feed>) -> Bool {