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

miss makezero in slice init #139

Open
alingse opened this issue May 27, 2024 · 0 comments
Open

miss makezero in slice init #139

alingse opened this issue May 27, 2024 · 0 comments

Comments

@alingse
Copy link

alingse commented May 27, 2024

I was running github actions to run linter makezero for top github golang repos.

see issues alingse/go-linter-runner#1

and the github actions output https://github.com/alingse/go-linter-runner/actions/runs/9242973634/job/25426493494

====================================================================================================
append to slice `result` with non-zero initialized length at https://github.com/nakabonne/ali/blob/master/main.go#L300:12
====================================================================================================

the result := make([]time.Duration, len(stringBuckets)) should be result := make([]time.Duration, 0, len(stringBuckets))

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

No branches or pull requests

1 participant