浏览代码

Merge pull request #5901 from NinaLua/master

chore: make function comment match function name
Sebastiaan van Stijn 1 月之前
父节点
当前提交
2eec74659e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      cli/command/trust/helpers.go
  2. 1 1
      cli/internal/oauth/api/api.go

+ 1 - 1
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 {

+ 1 - 1
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()