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:
parent
39d25eb1e2
commit
519923fbf9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user