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

[chore] do not initialize empty slices #3626

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Jan 20, 2025

Apply go best practice to avoid assigning an empty slice.

@atoulme atoulme requested a review from a team as a code owner January 20, 2025 00:07
@swiatekm
Copy link
Contributor

It's a bit annoying there's no linter that can enforce this best practice. Best I found was a recommendation to use ruleguard.

@swiatekm swiatekm merged commit 314df7b into open-telemetry:main Jan 20, 2025
38 checks passed
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