Simplify representedObjectsContainsAnyPseudoFeed.

This commit is contained in:
Brent Simmons 2019-05-19 20:49:24 -07:00
parent 48e19c23a7
commit 4d27e5a338
1 changed files with 1 additions and 9 deletions

View File

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