cleanup ignored static analysis (#16767)

This commit is contained in:
ferhat elmas authored and GitHub committed 2023-03-06 08:56:10 -08:00
1 parent 3423028713
commit 714283fae2
48 files changed
+182 -261

No files matched your search

+1 -2
View File
@@ -1327,8 +1327,7 @@ func (c *SiteReplicationSys) PeerSTSAccHandler(ctx context.Context, stsCred *mad
// Extract the username and lookup DN and groups in LDAP.
ldapUser, isLDAPSTS := claims.Lookup(ldapUserN)
switch {
case isLDAPSTS:
if isLDAPSTS {
// Need to lookup the groups from LDAP.
_, ldapGroups, err := globalIAMSys.LDAPConfig.LookupUserDN(ldapUser)
if err != nil {