pkcs15: minor lint

This commit is contained in:
Greg T. Wallace 2025-06-23 19:54:59 -04:00
parent 4a3f79ec07
commit 7319fc16d8

View file

@ -25,7 +25,7 @@ const (
// params expected in the APC file.
func (p15 *pkcs15KeyCert) computeEncryptedKeyEnvelope() error {
// if computation already performed, this is a no-op (keep existing envelope)
if p15.envelopedPrivateKey != nil && len(p15.envelopedPrivateKey) != 0 {
if len(p15.envelopedPrivateKey) > 0 {
return nil
}