Skip to content

Commit

Permalink
style: avoid using var shorthands for UglifyJS's sake
Browse files Browse the repository at this point in the history
  • Loading branch information
FlavioMartinho authored and panva committed Mar 28, 2019
1 parent 9b08515 commit 44edb0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/algorithms/ecdsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function ecdsaVerifyFN(hash) {
}
return {
data: pdata,
mac,
mac: mac,
valid: true
};
});
Expand Down
4 changes: 2 additions & 2 deletions lib/algorithms/rsaes.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function rsaesEncryptFn(name) {
key = rsaUtil.convertToPem(key, true);

var cdata = helpers.nodeCrypto.publicEncrypt({
key,
key: key,
padding: helpers.nodeCrypto.constants[nodeSupport[name]]
}, pdata);

Expand Down Expand Up @@ -168,7 +168,7 @@ function rsaesDecryptFn(name) {
nodejs = function(key, pdata) {
key = rsaUtil.convertToPem(key, false);
return helpers.nodeCrypto.privateDecrypt({
key,
key: key,
padding: helpers.nodeCrypto.constants[nodeSupport[name]]
}, pdata);
};
Expand Down

0 comments on commit 44edb0a

Please sign in to comment.