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

This commit is contained in:
Brent Simmons 2024-05-05 16:51:43 -07:00
parent c96a3c7e5c
commit 399703c2fe

View File

@ -850,10 +850,10 @@ private extension SidebarViewController {
}
}
func applyToCellsForRepresentedObject(_ representedObject: AnyObject, _ completion: (SidebarCell, Node) -> Void) {
func applyToCellsForRepresentedObject(_ representedObject: AnyObject, _ callback: (SidebarCell, Node) -> Void) {
applyToAvailableCells { (cell, node) in
if node.representsSidebarObject(representedObject) {
completion(cell, node)
callback(cell, node)
}
}
}