Improve error handling, fix linter (#92)
* Improve error handling, fix linter
This commit is contained in:
parent
6b2ac0b11c
commit
53a85837e0
23 changed files with 194 additions and 186 deletions
|
|
@ -82,8 +82,7 @@ func (keyRing *KeyRing) getSigningEntity() (*openpgp.Entity, error) {
|
|||
}
|
||||
}
|
||||
if signEntity == nil {
|
||||
err := errors.New("gopenpgp: cannot sign message, unable to unlock signer key")
|
||||
return signEntity, err
|
||||
return nil, errors.New("gopenpgp: cannot sign message, unable to unlock signer key")
|
||||
}
|
||||
|
||||
return signEntity, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue