From 113b3c85f3a1bce8551520747ea3587aa08cd6ba Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 24 Nov 2018 16:06:42 +0900 Subject: [PATCH] crypto: convert to arrow function in `lib/internal/crypto/cipher.js` Changed function expression to arrow function. --- lib/internal/crypto/cipher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/crypto/cipher.js b/lib/internal/crypto/cipher.js index a3f28c183a46b7..cdb92465ece578 100644 --- a/lib/internal/crypto/cipher.js +++ b/lib/internal/crypto/cipher.js @@ -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;