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;