Merge pull request #3798 from greatroar/errors

all: Move away from pkg/errors, easy cases
This commit is contained in:
MichaelEischer
2022-06-17 19:01:40 +02:00
committed by GitHub
23 changed files with 66 additions and 80 deletions

View File

@@ -154,7 +154,7 @@ func SearchKey(ctx context.Context, s *Repository, password string, maxKeys int,
debug.Log("key %v returned error %v", fi.Name, err)
// ErrUnauthenticated means the password is wrong, try the next key
if errors.Cause(err) == crypto.ErrUnauthenticated {
if errors.Is(err, crypto.ErrUnauthenticated) {
return nil
}