Skip to content

Commit c15efce

Browse files
ota-meshirvagg
authored andcommitted
crypto: convert to arrow function
Changed function expression to arrow function. PR-URL: #24597 Reviewed-By: Ron Korving <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent a8e93f7 commit c15efce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/crypto/cipher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const { deprecate, normalizeEncoding } = require('internal/util');
3939
let StringDecoder;
4040

4141
function rsaFunctionFor(method, defaultPadding) {
42-
return function(options, buffer) {
42+
return (options, buffer) => {
4343
const key = options.key || options;
4444
const padding = options.padding || defaultPadding;
4545
const passphrase = options.passphrase || null;

0 commit comments

Comments
 (0)