mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 16:54:12 +00:00
Merge branch 'mac-candidate'
This commit is contained in:
commit
2027e83504
1 file changed
+7
-2
@@ -33,11 +33,16 @@ extension Feed: ArticleFetcher {
|
||||
}
|
||||
|
||||
public func fetchUnreadArticles() -> Set<Article> {
|
||||
preconditionFailure("feed.fetchUnreadArticles is unused.")
|
||||
return fetchArticles().unreadArticles()
|
||||
}
|
||||
|
||||
public func fetchUnreadArticlesAsync(_ callback: @escaping ArticleSetBlock) {
|
||||
preconditionFailure("feed.fetchUnreadArticlesAsync is unused.")
|
||||
guard let account = account else {
|
||||
assertionFailure("Expected feed.account, but got nil.")
|
||||
callback(Set<Article>())
|
||||
return
|
||||
}
|
||||
account.fetchArticlesAsync(.feed(self)) { callback($0.unreadArticles()) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user