Skip to content

Commit

Permalink
Merge pull request #520 from openpgpjs/fix_519
Browse files Browse the repository at this point in the history
Fixes the typo addressed in #519
  • Loading branch information
Bart Butler committed Feb 15, 2017
2 parents 3d32898 + e90161c commit 3d03b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/key.js
Expand Up @@ -358,7 +358,7 @@ Key.prototype.getEncryptionKeyPacket = function() {
}
// if no valid subkey for encryption, evaluate primary key
var primaryUser = this.getPrimaryUser();
if (primaryUser && primaryUser.selfCertificate && !primaryUser.selfCertificate.isExpired &&
if (primaryUser && primaryUser.selfCertificate && !primaryUser.selfCertificate.isExpired() &&
isValidEncryptionKeyPacket(this.primaryKey, primaryUser.selfCertificate)) {
return this.primaryKey;
}
Expand Down

0 comments on commit 3d03b34

Please sign in to comment.