Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvia Lei <[email protected]>
  • Loading branch information
Wwwsylvia committed Apr 28, 2023
1 parent ede6416 commit 9059f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/notation/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9059f99

Please sign in to comment.