googleforgames/open-match

miss makezero in slice init

alingse opened this issue · 0 comments

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/9242991979/job/25426536505

====================================================================================================
append to slice `tags` with non-zero initialized length at https://github.com/googleforgames/open-match/blob/main/examples/functions/golang/backfill/mmf/matchfunction.go#L231:11
====================================================================================================

the tags := make([]string, len(tagFilters)) should be tags := make([]string, 0, len(tagFilters))

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Output of kubectl version:

Cloud Provider/Platform (AKS, GKE, Minikube etc.):

Open Match Release Version:

Install Method(yaml/helm):