mirror of https://github.com/docker/docs.git
Remove misleading passphrase-related error handling in NotaryRepository.Initialize:
1. It is on a path where those errors can never happen 2. The specific error handling would silently ignore the error, which can’t be right anyway. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
57a15112c8
commit
e19e7fc44d
|
|
@ -209,11 +209,7 @@ func (r *NotaryRepository) Initialize(rootKeyID string) error {
|
|||
err = r.tufRepo.InitRoot(false)
|
||||
if err != nil {
|
||||
logrus.Debug("Error on InitRoot: ", err.Error())
|
||||
switch err.(type) {
|
||||
case signed.ErrInsufficientSignatures, trustmanager.ErrPasswordInvalid:
|
||||
default:
|
||||
return err
|
||||
}
|
||||
return err
|
||||
}
|
||||
err = r.tufRepo.InitTargets()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue