Make sure we call the completion if we need to exit early.

This commit is contained in:
Maurice Parker 2020-12-10 17:22:25 -06:00
parent fce8070ae7
commit 9790b7840d
1 changed files with 2 additions and 0 deletions

View File

@ -996,6 +996,7 @@ private extension ReaderAPIAccountDelegate {
func syncArticleReadState(account: Account, articleIDs: [String]?, completion: @escaping (() -> Void)) { func syncArticleReadState(account: Account, articleIDs: [String]?, completion: @escaping (() -> Void)) {
guard let articleIDs = articleIDs else { guard let articleIDs = articleIDs else {
completion()
return return
} }
@ -1044,6 +1045,7 @@ private extension ReaderAPIAccountDelegate {
func syncArticleStarredState(account: Account, articleIDs: [String]?, completion: @escaping (() -> Void)) { func syncArticleStarredState(account: Account, articleIDs: [String]?, completion: @escaping (() -> Void)) {
guard let articleIDs = articleIDs else { guard let articleIDs = articleIDs else {
completion()
return return
} }