Continue work on non-optional article.status.

This commit is contained in:
Brent Simmons 2017-09-19 08:07:06 -07:00
parent b28a849af6
commit 8767aa3178
1 changed files with 1 additions and 10 deletions

View File

@ -72,16 +72,7 @@ public final class Account: DisplayNameProvider, Hashable {
public func markArticles(_ articles: Set<Article>, statusKey: String, flag: Bool) {
let statuses = database.statuses(for: articles)
if statuses.isEmpty {
return
}
database.mark(statuses, statusKey: statusKey, flag: flag)
}
public func articleStatus(for article: Article) -> ArticleStatus? {
return database.status(for: article)
database.mark(articles, statusKey: statusKey, flag: flag)
}
public func ensureFolder(with name: String) -> Folder? {