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