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:
@@ -66,7 +66,7 @@ final class SmartFeed: PseudoFeed {
|
||||
|
||||
// Remove any accounts that are no longer active or have been deleted
|
||||
let activeAccountIDs = activeAccounts.map { $0.accountID }
|
||||
unreadCounts.keys.forEach { accountID in
|
||||
for accountID in unreadCounts.keys {
|
||||
if !activeAccountIDs.contains(accountID) {
|
||||
unreadCounts.removeValue(forKey: accountID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user