Simplify representedObjectsContainsAnyPseudoFeed.
This commit is contained in:
parent
48e19c23a7
commit
4d27e5a338
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue