From 2b46ee65cc900e2909fcc26cb7720afd33bb0717 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 1 Sep 2026 09:14:04 -0700 Subject: [PATCH] =?UTF-8?q?Replace=20return=20with=20continue=20when=20syn?= =?UTF-8?q?cing=20folder=20relationships=20so=20we=20don=E2=80=99t=20skip?= =?UTF-8?q?=20some.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Account/Feedbin/FeedbinAccountDelegate.swift | 4 +++- .../NewsBlur/Internals/NewsBlurAccountDelegate+Internal.swift | 1 - .../Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Modules/Account/Sources/Account/Feedbin/FeedbinAccountDelegate.swift b/Modules/Account/Sources/Account/Feedbin/FeedbinAccountDelegate.swift index 59aac11d8..d67539961 100644 --- a/Modules/Account/Sources/Account/Feedbin/FeedbinAccountDelegate.swift +++ b/Modules/Account/Sources/Account/Feedbin/FeedbinAccountDelegate.swift @@ -702,7 +702,9 @@ private extension FeedbinAccountDelegate { // Sync the folders for (folderName, groupedTaggings) in taggingsDict { - guard let folder = folderDict[folderName] else { return } + guard let folder = folderDict[folderName] else { + continue + } let taggingFeedIDs = groupedTaggings.map { String($0.feedID) } diff --git a/Modules/Account/Sources/Account/NewsBlur/Internals/NewsBlurAccountDelegate+Internal.swift b/Modules/Account/Sources/Account/NewsBlur/Internals/NewsBlurAccountDelegate+Internal.swift index 1507200b5..312263f3a 100644 --- a/Modules/Account/Sources/Account/NewsBlur/Internals/NewsBlurAccountDelegate+Internal.swift +++ b/Modules/Account/Sources/Account/NewsBlur/Internals/NewsBlurAccountDelegate+Internal.swift @@ -157,7 +157,6 @@ import os let newsBlurFolderFeedIDs = folderRelationships.map { String($0.feedID) } - // A missing folder must not abort the rest of the relationship sync. guard let folder = folderDict[folderName] else { continue } diff --git a/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift b/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift index d8c6d40af..edcd8339f 100644 --- a/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift +++ b/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift @@ -897,7 +897,9 @@ private extension ReaderAPIAccountDelegate { // Sync the folders for (folderExternalID, groupedTaggings) in taggingsDict { - guard let folder = folderDict[folderExternalID] else { return } + guard let folder = folderDict[folderExternalID] else { + continue + } let taggingFeedIDs = groupedTaggings.map { $0.feedID } // Move any feeds not in the folder to the account