Skip to content

Commit 6f4e30d

Browse files
ota-meshiBethGriggs
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 c87af34 commit 6f4e30d

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
@@ -37,7 +37,7 @@ const { deprecate, normalizeEncoding } = require('internal/util');
3737
let StringDecoder;
3838

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

0 commit comments

Comments
 (0)