add missing parentheses

This commit is contained in:
Sanjana Rajan 2017-02-15 13:06:18 -08:00
parent 3d32898250
commit e90161c2d1

View File

@ -358,7 +358,7 @@ Key.prototype.getEncryptionKeyPacket = function() {
} }
// if no valid subkey for encryption, evaluate primary key // if no valid subkey for encryption, evaluate primary key
var primaryUser = this.getPrimaryUser(); var primaryUser = this.getPrimaryUser();
if (primaryUser && primaryUser.selfCertificate && !primaryUser.selfCertificate.isExpired && if (primaryUser && primaryUser.selfCertificate && !primaryUser.selfCertificate.isExpired() &&
isValidEncryptionKeyPacket(this.primaryKey, primaryUser.selfCertificate)) { isValidEncryptionKeyPacket(this.primaryKey, primaryUser.selfCertificate)) {
return this.primaryKey; return this.primaryKey;
} }