Guard against empty queries. Issue #1431

This commit is contained in:
Maurice Parker 2019-12-11 13:19:22 -07:00
parent e303d64c1d
commit e90c6d1395
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ private extension ArticlesTable {
} }
func fetchArticleIDsAsync(_ statusKey: ArticleStatus.Key, _ value: Bool, _ webFeedIDs: Set<String>, _ callback: @escaping (Set<String>) -> Void) { func fetchArticleIDsAsync(_ statusKey: ArticleStatus.Key, _ value: Bool, _ webFeedIDs: Set<String>, _ callback: @escaping (Set<String>) -> Void) {
guard !queue.isSuspended else { guard !queue.isSuspended && !webFeedIDs.isEmpty else {
callback(Set<String>()) callback(Set<String>())
return return
} }