From e19e7fc44d6b8428ae3eee965d70b93ca4c5a8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 2 Dec 2015 14:58:37 +0100 Subject: [PATCH] Remove misleading passphrase-related error handling in NotaryRepository.Initialize: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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č --- client/client.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/client.go b/client/client.go index 3514ba567f..efda8b9f8b 100644 --- a/client/client.go +++ b/client/client.go @@ -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 {