mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Replace uses of forEach with for-in loops.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user