Skip to content

Commit b87ef00

Browse files
authored
Merge pull request #173 from hurryabit/boolean-is-private
Always return a boolean from NodeRSA.isPrivate
2 parents 14dcb98 + d6e4e97 commit b87ef00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/rsa.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ module.exports.Key = (function () {
272272
* Check if key pair contains private key
273273
*/
274274
RSAKey.prototype.isPrivate = function () {
275-
return this.n && this.e && this.d || false;
275+
return this.n && this.e && this.d && true || false;
276276
};
277277

278278
/**

0 commit comments

Comments
 (0)