Skip to content
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

Fix immutability of fern#internal#node#expand() function #482

Merged
merged 5 commits into from
Aug 26, 2023

Conversation

lambdalisue
Copy link
Owner

The function should be immutable but it mutate nodes in current implementation. This PR makes the function immutable.

I think this would drastically simplify the code of #480

@lambdalisue lambdalisue merged commit e75d45d into main Aug 26, 2023
16 checks passed
@lambdalisue lambdalisue deleted the fix-node-children branch August 26, 2023 07:55
lambdalisue added a commit that referenced this pull request Aug 26, 2023
Because of #482, `nodes` are not modified thus we must use the return
value in step-by-step tests
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.

1 participant