From 9059f99d66e738cb5b81b607981c09ecc6531ab2 Mon Sep 17 00:00:00 2001 From: Sylvia Lei Date: Fri, 28 Apr 2023 11:48:31 +0800 Subject: [PATCH] update comments Signed-off-by: Sylvia Lei --- cmd/notation/registry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/notation/registry.go b/cmd/notation/registry.go index eaea2a532..1ea9087d4 100644 --- a/cmd/notation/registry.go +++ b/cmd/notation/registry.go @@ -183,10 +183,10 @@ func getAuthClient(ctx context.Context, opts *SecureFlagOpts, ref registry.Refer cred := opts.Credential() if cred != auth.EmptyCredential { - // use specified credential + // use the specified credential authClient.Credential = auth.StaticCredential(ref.Host(), cred) } else { - // use saved credential + // use saved credentials credsStore, err := notationauth.NewCredentialsStore() if err != nil { return nil, false, fmt.Errorf("failed to get credentials store: %w", err)