Skip to content

miss makezero in slice init #139

@alingse

Description

@alingse

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions