From 6f4e30d029a3669c7deea11e2acf67e26ef9e756 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 d5f6700fa270c1..8f5549feb14ec7 100644 --- a/lib/internal/crypto/cipher.js +++ b/lib/internal/crypto/cipher.js @@ -37,7 +37,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;