crypto: convert to arrow function

Changed function expression to arrow function.

PR-URL: https://github.com/nodejs/node/pull/24597
Reviewed-By: Ron Korving <ron@ronkorving.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
yosuke ota authored and Rod Vagg committed 2018-11-28 11:25:34 +11:00
1 parent a8e93f7691
commit c15efcec92
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ const { deprecate, normalizeEncoding } = require('internal/util');
let StringDecoder;
function rsaFunctionFor(method, defaultPadding) {
return function(options, buffer) {
return (options, buffer) => {
const key = options.key || options;
const padding = options.padding || defaultPadding;
const passphrase = options.passphrase || null;