From 983907e57aee17424d801c7ac3d8e879a3922575 Mon Sep 17 00:00:00 2001 From: pmahindrakar-oss Date: Tue, 12 Nov 2024 12:31:19 -0800 Subject: [PATCH] remove dup calls Signed-off-by: pmahindrakar-oss --- flyteidl/clients/go/admin/auth_interceptor.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/flyteidl/clients/go/admin/auth_interceptor.go b/flyteidl/clients/go/admin/auth_interceptor.go index 5cd822fc55..c7c8007283 100644 --- a/flyteidl/clients/go/admin/auth_interceptor.go +++ b/flyteidl/clients/go/admin/auth_interceptor.go @@ -182,8 +182,6 @@ func NewAuthInterceptor(cfg *Config, tokenCache cache.TokenCache, credentialsFut } authorizationMetadataKey := oauthMetadataProvider.authorizationMetadataKey tokenSource := oauthMetadataProvider.tokenSource - - err = MaterializeCredentials(tokenSource, cfg, authorizationMetadataKey, credentialsFuture) if isValid := utils.Valid(t); isValid { err = MaterializeCredentials(tokenSource, cfg, authorizationMetadataKey, credentialsFuture) if err != nil {