Skip to content

Commit 544d5d2

Browse files
committed
Merge pull request #22 from rzcoder/dev
fix constructor
2 parents ddf3ed9 + 54147ab commit 544d5d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-rsa",
3-
"version": "0.2.10",
3+
"version": "0.2.11",
44
"description": "Node.js RSA library",
55
"main": "src/NodeRSA.js",
66
"scripts": {

src/NodeRSA.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = (function () {
3737
* @constructor
3838
*/
3939
function NodeRSA(key, format, options) {
40-
if (!this instanceof NodeRSA) {
40+
if (!(this instanceof NodeRSA)) {
4141
return new NodeRSA(key, options);
4242
}
4343

0 commit comments

Comments
 (0)