From 519923fbf9439522c3be6f52a4f297e664af4ef6 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 Changed function expression to arrow function. PR-URL: https://github.com/nodejs/node/pull/24597 Reviewed-By: Ron Korving Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- 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 a3f28c183a4..cdb92465ece 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;