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

refactor: clean up slice initialization in node status #24109

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

tgross
Copy link
Member

@tgross tgross commented Oct 2, 2024

We initialize this slice with a zeroed array and then append to it, which means we then have to clean out the empty strings later. Initialize to the correct capacity up front so there are no empty values.

Ref: #24104

We initialize this slice with a zeroed array and then append to it, which means
we then have to clean out the empty strings later. Initialize to the correct
capacity up front so there are no empty values.

Ref: #24104
@tgross tgross merged commit 6c03e19 into main Oct 2, 2024
29 checks passed
@tgross tgross deleted the b-fixup-slice-init branch October 2, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants