Skip to content

Commit ad881cd

Browse files
authored
Merge pull request #124 from dgramop/patch-1
NodeRSA.importKey() now returns this
2 parents da04387 + 885c220 commit ad881cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/NodeRSA.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ module.exports = (function () {
185185
if (!formats.detectAndImport(this.keyPair, keyData, format) && format === undefined) {
186186
throw Error("Key format must be specified");
187187
}
188-
188+
189189
this.$cache = {};
190+
191+
return this;
190192
};
191193

192194
/**

0 commit comments

Comments
 (0)