Rename a couple functions that needed clarification

This commit is contained in:
Maurice Parker 2019-04-28 06:46:50 -05:00
parent 48173fe43c
commit 5fc3fee12d
1 changed files with 3 additions and 3 deletions

View File

@ -207,7 +207,7 @@ class NavigationStateController {
return
}
let shouldFetchAndMergeArticles = representedObjectsContainsAnyFeed(feeds) || representedObjectsContainsAnyPseudoFeed()
let shouldFetchAndMergeArticles = timelineFetcherContainsAnyFeed(feeds) || timelineFetcherContainsAnyPseudoFeed()
if shouldFetchAndMergeArticles {
queueFetchAndMergeArticles()
}
@ -603,14 +603,14 @@ private extension NavigationStateController {
}
func representedObjectsContainsAnyPseudoFeed() -> Bool {
func timelineFetcherContainsAnyPseudoFeed() -> Bool {
if timelineFetcher is PseudoFeed {
return true
}
return false
}
func representedObjectsContainsAnyFeed(_ feeds: Set<Feed>) -> Bool {
func timelineFetcherContainsAnyFeed(_ feeds: Set<Feed>) -> Bool {
// Return true if theres a match or if a folder contains (recursively) one of feeds