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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user