From 121d95aba4b9e02a38969dc7846b2713347cdbd2 Mon Sep 17 00:00:00 2001 From: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Date: Wed, 16 Mar 2022 17:21:46 -0400 Subject: [PATCH] Remove unused check --- vault/identity_store_oidc.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vault/identity_store_oidc.go b/vault/identity_store_oidc.go index 44a8f57757f6..e69c154b2b44 100644 --- a/vault/identity_store_oidc.go +++ b/vault/identity_store_oidc.go @@ -623,9 +623,7 @@ func (i *IdentityStore) keyIDsByName(ctx context.Context, s logical.Storage, nam } for _, k := range key.KeyRing { - if !strutil.StrListContains(keyIDs, k.KeyID) { - keyIDs = append(keyIDs, k.KeyID) - } + keyIDs = append(keyIDs, k.KeyID) } return keyIDs, nil