Call completion if even it if we don't initialize the command. Fixes #3092

This commit is contained in:
Maurice Parker 2021-05-12 20:06:46 -05:00
parent 5a31a90d0c
commit 7b3921bcb1
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ final class MarkStatusCommand: UndoableCommand {
// Filter out articles that already have the desired status or can't be marked.
let articlesToMark = MarkStatusCommand.filteredArticles(initialArticles, statusKey, flag)
if articlesToMark.isEmpty {
completion?()
return nil
}
self.articles = Set(articlesToMark)