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

task: use the recommended slice initialization #2798

Merged
merged 1 commit into from Mar 22, 2024

Conversation

gssbzn
Copy link
Collaborator

@gssbzn gssbzn commented Mar 22, 2024

Ran some IDEA code inspection tools and found these as recommended fixes
prefer var mySlice []string over mySlice := []string{}, it also helped linting flag usages where we could pre-allocate the size of the slice

@gssbzn gssbzn requested review from a team as code owners March 22, 2024 12:03
@gssbzn gssbzn merged commit fd1b38c into master Mar 22, 2024
18 checks passed
@gssbzn gssbzn deleted the slice-initialization-fixes branch March 22, 2024 12:30
@fmenezes fmenezes mentioned this pull request Apr 5, 2024
6 tasks
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.

None yet

2 participants