Skip to content

Commit 54147ab

Browse files
committed
fix constructor
1 parent ddf3ed9 commit 54147ab

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)