Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
Signed-off-by: Atif Ali <atali@redhat.com>
  • Loading branch information
aali309 committed Nov 14, 2024
1 parent b344eae commit e374df5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit e374df5

Please sign in to comment.