You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
====================================================================================================
append to slice `customContextTags` with non-zero initialized length at https://github.com/DataDog/datadog-agent/blob/main/pkg/util/profiling/profiling.go#L80:24
append to slice `readers` with non-zero initialized length at https://github.com/DataDog/datadog-agent/blob/main/pkg/network/usm/sharedlibraries/testutil/fmapper/fmapper.go#L36:13
====================================================================================================
the customContextTags := make([]string, len(settings.CustomAttributes)) should be customContextTags := make([]string, 0, len(settings.CustomAttributes))
the readers := make([]*mmap.ReaderAt, len(os.Args)-1) should be readers := make([]*mmap.ReaderAt, 0, len(os.Args)-1)
Agent Environment
Describe what happened:
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/9242970601/job/25426486285
the
customContextTags := make([]string, len(settings.CustomAttributes))
should becustomContextTags := make([]string, 0, len(settings.CustomAttributes))
the
readers := make([]*mmap.ReaderAt, len(os.Args)-1)
should bereaders := make([]*mmap.ReaderAt, 0, len(os.Args)-1)
Describe what you expected:
Steps to reproduce the issue:
Additional environment details (Operating System, Cloud provider, etc):
The text was updated successfully, but these errors were encountered: