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 <ron@ronkorving.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent a8e93f7 commit c15efce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/internal/crypto/cipher.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const { deprecate, normalizeEncoding } = require('internal/util');
3939
letStringDecoder;
4040

4141
functionrsaFunctionFor(method,defaultPadding){
42-
returnfunction(options,buffer){
42+
return(options,buffer)=>{
4343
constkey=options.key||options;
4444
constpadding=options.padding||defaultPadding;
4545
constpassphrase=options.passphrase||null;

0 commit comments

Comments
 (0)