From 9790b7840d9895ec0c11b650382e9a3a216a11c6 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 10 Dec 2020 17:22:25 -0600 Subject: [PATCH] Make sure we call the completion if we need to exit early. --- .../Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift index a3fe0a525..c5c1a5c1b 100644 --- a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift +++ b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift @@ -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 }