Rename completion to callback, since it wasn’t a completion handler.

This commit is contained in:
Brent Simmons
2024-05-05 16:51:09 -07:00
parent 4b381daa92
commit c96a3c7e5c

View File

@@ -841,12 +841,12 @@ private extension SidebarViewController {
return rowView.view(atColumn: 0) as? SidebarCell
}
func applyToAvailableCells(_ completion: (SidebarCell, Node) -> Void) {
func applyToAvailableCells(_ callback: (SidebarCell, Node) -> Void) {
outlineView.enumerateAvailableRowViews { (rowView: NSTableRowView, row: Int) -> Void in
guard let cell = cellForRowView(rowView), let node = nodeForRow(row) else {
return
}
completion(cell, node)
callback(cell, node)
}
}