Merge pull request #5901 from NinaLua/master

chore: make function comment match function name
This commit is contained in:
Sebastiaan van Stijn 2025-03-07 20:42:38 +01:00 committed by GitHub
commit 2eec74659e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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()