Fix lint issues.

This commit is contained in:
Brent Simmons
2025-01-23 21:04:27 -08:00
parent dd885d1743
commit 492bdbdf51
8 changed files with 12 additions and 11 deletions

View File

@@ -143,11 +143,7 @@ private extension FeedTreeControllerDelegate {
}
func nodeInArrayRepresentingObject(_ nodes: [Node], _ representedObject: AnyObject) -> Node? {
for oneNode in nodes {
if oneNode.representedObject === representedObject {
return oneNode
}
}
return nil
nodes.first { $0.representedObject === representedObject }
}
}