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

@@ -35,7 +35,9 @@ import RSCore
let decoder = PropertyListDecoder()
account.feedMetadata = (try? decoder.decode(Account.FeedMetadataDictionary.self, from: fileData)) ?? Account.FeedMetadataDictionary()
}
account.feedMetadata.values.forEach { $0.delegate = account }
for value in account.feedMetadata.values {
value.delegate = account
}
}
func save() {