From 21d773969232c221f1faffe3c85603bdddfed83a Mon Sep 17 00:00:00 2001 From: Mathias Gebbe Date: Wed, 25 Feb 2026 21:09:13 +0100 Subject: [PATCH] style: fix gci formatting in handlers and handlers_test Signed-off-by: Mathias Gebbe --- server/handlers.go | 2 +- server/handlers_test.go | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/server/handlers.go b/server/handlers.go index eac2c945..cddb4c0d 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -1481,7 +1481,7 @@ func (s *Server) handleClientCredentialsGrant(w http.ResponseWriter, r *http.Req // Validate scopes. var ( - unrecognized []string + unrecognized []string invalidScopes []string ) hasOpenIDScope := false diff --git a/server/handlers_test.go b/server/handlers_test.go index 58018920..1b586f31 100644 --- a/server/handlers_test.go +++ b/server/handlers_test.go @@ -649,14 +649,14 @@ func TestHandlePasswordLoginWithSkipApproval(t *testing.T) { func TestHandleClientCredentials(t *testing.T) { tests := []struct { - name string - clientID string - clientSecret string - scopes string - wantCode int - wantAccessTok bool - wantIDToken bool - wantUsername string + name string + clientID string + clientSecret string + scopes string + wantCode int + wantAccessTok bool + wantIDToken bool + wantUsername string }{ { name: "Basic grant, no scopes",