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)) {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue