From bea54b4cae78170dbc215a7f3ff18cd31bd7ee3e Mon Sep 17 00:00:00 2001 From: Jan Larwig Date: Thu, 1 Oct 2026 10:57:35 +0200 Subject: [PATCH] ci: make the linter happy again Signed-off-by: Jan Larwig --- oauthproxy_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/oauthproxy_test.go b/oauthproxy_test.go index 0c8a1f8a..81af11aa 100644 --- a/oauthproxy_test.go +++ b/oauthproxy_test.go @@ -3218,11 +3218,12 @@ func TestSkipAuthPathRouting(t *testing.T) { for _, config := range configs { t.Run(config, func(t *testing.T) { opts.SkipAuthRegex, opts.SkipAuthRoutes = nil, nil - if config == "regex" { + switch config { + case "regex": opts.SkipAuthRegex = []string{pattern} - } else if config == "negated route" { + case "negated route": opts.SkipAuthRoutes = []string{"POST!=^/protected"} - } else { + default: opts.SkipAuthRoutes = []string{"POST=" + pattern} } testProxy, err := NewOAuthProxy(opts, func(string) bool { return true })