From aa66f07a3e7443b93349b0081503c25b1934dd17 Mon Sep 17 00:00:00 2001 From: NinaLua Date: Fri, 7 Mar 2025 14:21:27 +0800 Subject: [PATCH] chore: make function comment match function name Signed-off-by: NinaLua --- cli/command/trust/helpers.go | 2 +- cli/internal/oauth/api/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/trust/helpers.go b/cli/command/trust/helpers.go index 0a9ef6671f..9f4e58b8b7 100644 --- a/cli/command/trust/helpers.go +++ b/cli/command/trust/helpers.go @@ -28,7 +28,7 @@ func notaryRoleToSigner(tufRole data.RoleName) string { return strings.TrimPrefix(tufRole.String(), "targets/") } -// clearChangelist clears the notary staging changelist. +// clearChangeList clears the notary staging changelist. func clearChangeList(notaryRepo client.Repository) error { cl, err := notaryRepo.GetChangelist() if err != nil { diff --git a/cli/internal/oauth/api/api.go b/cli/internal/oauth/api/api.go index cd9ceb7da1..98bfdf92fe 100644 --- a/cli/internal/oauth/api/api.go +++ b/cli/internal/oauth/api/api.go @@ -155,7 +155,7 @@ func resetTimer(t *time.Timer, d time.Duration) { t.Reset(d) } -// getToken calls the token endpoint of Auth0 and returns the response. +// getDeviceToken calls the token endpoint of Auth0 and returns the response. func (a API) getDeviceToken(ctx context.Context, state State) (TokenResponse, error) { ctx, cancel := context.WithTimeout(ctx, 1*time.Minute) defer cancel()