Replace forEach for for-in.

This commit is contained in:
Brent Simmons
2024-04-07 17:06:39 -07:00
parent 53215c1f80
commit 6db1d40597
37 changed files with 185 additions and 123 deletions

View File

@@ -786,9 +786,9 @@ private extension SidebarViewController {
}
func applyToAvailableCells(_ completion: (FeedTableViewCell, IndexPath) -> Void) {
tableView.visibleCells.forEach { cell in
for cell in tableView.visibleCells {
guard let indexPath = tableView.indexPath(for: cell) else {
return
continue
}
completion(cell as! FeedTableViewCell, indexPath)
}