diff --git a/openpgp/v2/keys.go b/openpgp/v2/keys.go index 480587872..c089bd455 100644 --- a/openpgp/v2/keys.go +++ b/openpgp/v2/keys.go @@ -62,7 +62,7 @@ func (e *Entity) PrimaryIdentity(date time.Time, config *packet.Config) (*packet var primaryIdentityCandidatesSelfSigs []*packet.Signature for _, identity := range e.Identities { selfSig, err := identity.Verify(date, config) // identity must be valid at date - if err == nil { // verification is successful + if err == nil { // verification is successful primaryIdentityCandidates = append(primaryIdentityCandidates, identity) primaryIdentityCandidatesSelfSigs = append(primaryIdentityCandidatesSelfSigs, selfSig) }