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 2018-11-24 16:06:42 +09:00 committed by Gireesh Punathil
parent 39d25eb1e2
commit 519923fbf9

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;