ci: fix linter warnings for preallocation

Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Jan Larwig
2026-01-17 16:01:14 +01:00
parent 844e4e3b0c
commit cc0b48d5ec
9 changed files with 13 additions and 34 deletions
+1
View File
@@ -11,6 +11,7 @@ import (
)
func validateAllowlists(o *options.Options) []string {
//nolint:prealloc
msgs := []string{}
msgs = append(msgs, validateAuthRoutes(o)...)
+1
View File
@@ -7,6 +7,7 @@ import (
)
func validateHeaders(headers []options.Header) []string {
//nolint:prealloc
msgs := []string{}
names := make(map[string]struct{})
+1
View File
@@ -9,6 +9,7 @@ import (
)
func validateUpstreams(upstreams options.UpstreamConfig) []string {
//nolint:prealloc
msgs := []string{}
ids := make(map[string]struct{})
paths := make(map[string]struct{})