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:
@@ -48,9 +48,9 @@ import Articles
|
||||
func perform() {
|
||||
|
||||
let group = DispatchGroup()
|
||||
itemSpecifiers.forEach {
|
||||
for itemSpecifier in itemSpecifiers {
|
||||
group.enter()
|
||||
$0.delete() {
|
||||
itemSpecifier.delete() {
|
||||
group.leave()
|
||||
}
|
||||
}
|
||||
@@ -63,7 +63,9 @@ import Articles
|
||||
}
|
||||
|
||||
func undo() {
|
||||
itemSpecifiers.forEach { $0.restore() }
|
||||
for itemSpecifier in itemSpecifiers {
|
||||
itemSpecifier.restore()
|
||||
}
|
||||
registerRedo()
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,9 @@ private extension SendToMarsEditCommand {
|
||||
|
||||
func appToUse() -> UserApp? {
|
||||
|
||||
marsEditApps.forEach{ $0.updateStatus() }
|
||||
for app in marsEditApps {
|
||||
app.updateStatus()
|
||||
}
|
||||
|
||||
for app in marsEditApps {
|
||||
if app.isRunning {
|
||||
|
||||
@@ -75,7 +75,9 @@ final class SmartFeed: PseudoFeed {
|
||||
if activeAccounts.isEmpty {
|
||||
updateUnreadCount()
|
||||
} else {
|
||||
activeAccounts.forEach { self.fetchUnreadCount(for: $0) }
|
||||
for account in activeAccounts {
|
||||
fetchUnreadCount(for: account)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user