diff --git a/cli/command/trust/signer_remove.go b/cli/command/trust/signer_remove.go index 5bd586c536..d4e8eec42b 100644 --- a/cli/command/trust/signer_remove.go +++ b/cli/command/trust/signer_remove.go @@ -76,8 +76,8 @@ func isLastSignerForReleases(roleWithSig data.Role, allRoles []client.RoleWithSi return counter < releasesRoleWithSigs.Threshold, nil } -// removeSingleSigner returns whether the signer has been removed during this operation and an error -// Note: the signer not being removed doesn't necessarily raise an error (eg. User saying "No" to the confirmation prompt) +// removeSingleSigner attempts to remove a single signer and returns whether signer removal happened. +// The signer not being removed doesn't necessarily raise an error e.g. user choosing "No" when prompted for confirmation. func removeSingleSigner(cli command.Cli, repoName, signerName string, forceYes bool) (bool, error) { ctx := context.Background() imgRefAndAuth, err := trust.GetImageReferencesAndAuth(ctx, nil, image.AuthResolver(cli), repoName)