Mark function as having @discardableResult, because we don’t always care about the result.

This commit is contained in:
Brent Simmons 2019-07-08 21:09:16 -07:00
parent e4f809be99
commit 3d0d6fa8a9

View File

@ -50,6 +50,7 @@ final class StatusesTable: DatabaseTable {
// MARK: Marking // MARK: Marking
@discardableResult
func mark(_ statuses: Set<ArticleStatus>, _ statusKey: ArticleStatus.Key, _ flag: Bool, _ database: FMDatabase) -> Set<ArticleStatus>? { func mark(_ statuses: Set<ArticleStatus>, _ statusKey: ArticleStatus.Key, _ flag: Bool, _ database: FMDatabase) -> Set<ArticleStatus>? {
// Sets flag in both memory and in database. // Sets flag in both memory and in database.