Make sure we call the completion if we need to exit early.
This commit is contained in:
parent
fce8070ae7
commit
9790b7840d
@ -996,6 +996,7 @@ private extension ReaderAPIAccountDelegate {
|
||||
|
||||
func syncArticleReadState(account: Account, articleIDs: [String]?, completion: @escaping (() -> Void)) {
|
||||
guard let articleIDs = articleIDs else {
|
||||
completion()
|
||||
return
|
||||
}
|
||||
|
||||
@ -1044,6 +1045,7 @@ private extension ReaderAPIAccountDelegate {
|
||||
|
||||
func syncArticleStarredState(account: Account, articleIDs: [String]?, completion: @escaping (() -> Void)) {
|
||||
guard let articleIDs = articleIDs else {
|
||||
completion()
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user