-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor path creation in walkTreeWithFlightRouterState (#69383)
There's no reason to use `map` here, since it's making the code harder to read and we ultimately have to flatten & filter out falsey values. This updates the path construction to use a `for..of` and only pushes paths that are relevant. This also removes the nested path array that was getting created every iteration of the loop.
- Loading branch information
Showing
1 changed file
with
44 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters