From e374df5fda118ae7243ac1a80517e4f12e45d5db Mon Sep 17 00:00:00 2001 From: Atif Ali Date: Thu, 14 Nov 2024 12:11:34 -0500 Subject: [PATCH] fix linter issue Signed-off-by: Atif Ali --- server/account/account_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/account/account_test.go b/server/account/account_test.go index f127eb7c6a7c2..ffcba4209d7a0 100644 --- a/server/account/account_test.go +++ b/server/account/account_test.go @@ -91,6 +91,7 @@ func adminContext(ctx context.Context) context.Context { }, } ctx = context.WithValue(ctx, sessionutil.ClaimsKey(), claims) + //nolint:staticcheck ctx = context.WithValue(ctx, "claims", claims) return ctx } @@ -107,6 +108,7 @@ func ssoAdminContext(ctx context.Context, iat time.Time) context.Context { } // Set both context values ctx = context.WithValue(ctx, sessionutil.ClaimsKey(), claims) + //nolint:staticcheck ctx = context.WithValue(ctx, "claims", claims) return ctx @@ -119,6 +121,7 @@ func projTokenContext(ctx context.Context) context.Context { "groups": []string{"proj:demo:deployer"}, } ctx = context.WithValue(ctx, sessionutil.ClaimsKey(), claims) + // nolint:staticcheck ctx = context.WithValue(ctx, "claims", claims) return ctx }