chore: make function comment match function name
Signed-off-by: NinaLua <iturf@sina.cn>
This commit is contained in:
parent
ceef542046
commit
aa66f07a3e
@ -28,7 +28,7 @@ func notaryRoleToSigner(tufRole data.RoleName) string {
|
|||||||
return strings.TrimPrefix(tufRole.String(), "targets/")
|
return strings.TrimPrefix(tufRole.String(), "targets/")
|
||||||
}
|
}
|
||||||
|
|
||||||
// clearChangelist clears the notary staging changelist.
|
// clearChangeList clears the notary staging changelist.
|
||||||
func clearChangeList(notaryRepo client.Repository) error {
|
func clearChangeList(notaryRepo client.Repository) error {
|
||||||
cl, err := notaryRepo.GetChangelist()
|
cl, err := notaryRepo.GetChangelist()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -155,7 +155,7 @@ func resetTimer(t *time.Timer, d time.Duration) {
|
|||||||
t.Reset(d)
|
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) {
|
func (a API) getDeviceToken(ctx context.Context, state State) (TokenResponse, error) {
|
||||||
ctx, cancel := context.WithTimeout(ctx, 1*time.Minute)
|
ctx, cancel := context.WithTimeout(ctx, 1*time.Minute)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user