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:
Miloslav Trmač 2015-12-02 14:58:37 +01:00
parent 57a15112c8
commit e19e7fc44d
1 changed files with 1 additions and 5 deletions

View File

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