Replace uses of forEach with for-in loops.

This commit is contained in:
Brent Simmons
2023-07-09 22:29:37 -07:00
parent d3d718c1b0
commit e1d2560fc0
4 changed files with 13 additions and 5 deletions

View File

@@ -540,7 +540,9 @@ private extension SidebarViewController {
}
func addAllSelectedToFilterExceptions() {
selectedFeeds.forEach { addToFilterExeptionsIfNecessary($0) }
for feed in selectedFeeds {
addToFilterExeptionsIfNecessary(feed)
}
}
func addToFilterExeptionsIfNecessary(_ feedProtocol: FeedProtocol?) {
@@ -583,7 +585,7 @@ private extension SidebarViewController {
restoreSelection(to: savedSelection, sendNotificationIfChanged: true)
// Automatically expand any new or newly active accounts
AccountManager.shared.activeAccounts.forEach { account in
for account in AccountManager.shared.activeAccounts {
if !savedAccounts.contains(account) {
let accountNode = treeController.nodeInTreeRepresentingObject(account)
outlineView.expandItem(accountNode)