JWT.Authenticate: remove err != nil check for error that has already been checked (#107727)

pull/107790/head
Bruno 2 weeks ago committed by GitHub
parent 4830969305
commit 0f23988132
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      pkg/services/authn/clients/jwt.go

@ -114,9 +114,6 @@ func (s *JWT) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identi
if !s.cfg.JWTAuth.SkipOrgRoleSync {
role, grafanaAdmin := s.extractRoleAndAdmin(claims)
if err != nil {
s.log.Warn("Failed to extract role", "err", err)
}
if s.cfg.JWTAuth.AllowAssignGrafanaAdmin {
id.IsGrafanaAdmin = &grafanaAdmin

Loading…
Cancel
Save