From a70ebefbfc5eec0df97234b5efd3e96930dcdc87 Mon Sep 17 00:00:00 2001 From: Shahram Kalantari Date: Wed, 23 Oct 2024 13:45:57 +1000 Subject: [PATCH] chore: remove commented code Signed-off-by: Shahram Kalantari --- pkg/common/oras/authprovider/azure/azureidentity.go | 1 - pkg/common/oras/authprovider/azure/azureworkloadidentity.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/common/oras/authprovider/azure/azureidentity.go b/pkg/common/oras/authprovider/azure/azureidentity.go index 97a687ee0..d0369c4dc 100644 --- a/pkg/common/oras/authprovider/azure/azureidentity.go +++ b/pkg/common/oras/authprovider/azure/azureidentity.go @@ -172,7 +172,6 @@ func (d *MIAuthProvider) Provide(ctx context.Context, artifact string) (provider var options *azcontainerregistry.AuthenticationClientOptions client, err := d.authClientFactory.CreateAuthClient(serverURL, options) if err != nil { - // return provider.AuthConfig{}, re.ErrorCodeAuthDenied.NewError(re.AuthProvider, "", re.AzureWorkloadIdentityLink, err, "failed to create authentication client for container registry by azure managed identity token", re.HideStackTrace) return provider.AuthConfig{}, re.ErrorCodeAuthDenied.WithError(err).WithDetail("failed to create authentication client for container registry by azure managed identity token") } diff --git a/pkg/common/oras/authprovider/azure/azureworkloadidentity.go b/pkg/common/oras/authprovider/azure/azureworkloadidentity.go index 1ef2c490d..31f45127d 100644 --- a/pkg/common/oras/authprovider/azure/azureworkloadidentity.go +++ b/pkg/common/oras/authprovider/azure/azureworkloadidentity.go @@ -174,7 +174,6 @@ func (d *WIAuthProvider) Provide(ctx context.Context, artifact string) (provider var options *azcontainerregistry.AuthenticationClientOptions client, err := d.authClientFactory.CreateAuthClient(serverURL, options) if err != nil { - // return provider.AuthConfig{}, re.ErrorCodeAuthDenied.NewError(re.AuthProvider, "", re.AzureWorkloadIdentityLink, err, "failed to create authentication client for container registry", re.HideStackTrace) return provider.AuthConfig{}, re.ErrorCodeAuthDenied.WithError(err).WithDetail("failed to create authentication client for container registry by azure managed identity token") }