Skip to content

fix: remove duplicate loop #8430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2025
Merged

fix: remove duplicate loop #8430

merged 1 commit into from
Jul 10, 2025

Conversation

G-Rath
Copy link
Contributor

@G-Rath G-Rath commented Jul 10, 2025

This loop is the exact same as this.#idealTreePrune:

#idealTreePrune () {
for (const node of this.idealTree.inventory.values()) {
if (node.extraneous) {
node.parent = null
}
}
}

I'm 98% sure it's a left-over from a refactor that intended to encapsulate the logic so it can be reused elsewhere

References

@G-Rath G-Rath requested a review from a team as a code owner July 10, 2025 20:16
@G-Rath G-Rath changed the title refactor: remove duplicate loop chore: remove duplicate loop Jul 10, 2025
@wraithgar wraithgar changed the title chore: remove duplicate loop fix: remove duplicate loop Jul 10, 2025
@wraithgar
Copy link
Member

Even worse it was part of a code cleanup that I apparently hit "paste" into somehow as I was doing it. Good catch.

#6393

@wraithgar wraithgar merged commit c457c75 into npm:latest Jul 10, 2025
17 of 18 checks passed
@github-actions github-actions bot mentioned this pull request Jul 10, 2025
@G-Rath G-Rath deleted the patch-2 branch July 10, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy