mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-17 11:55:38 +02:00
ci: fix linter warnings for preallocation
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func validateAllowlists(o *options.Options) []string {
|
||||
//nolint:prealloc
|
||||
msgs := []string{}
|
||||
|
||||
msgs = append(msgs, validateAuthRoutes(o)...)
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func validateHeaders(headers []options.Header) []string {
|
||||
//nolint:prealloc
|
||||
msgs := []string{}
|
||||
names := make(map[string]struct{})
|
||||
|
||||
|
||||
@@ -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{})
|
||||
|
||||
Reference in New Issue
Block a user