Skip to content

Commit

Permalink
crypto: convert to arrow function
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ota-meshi authored and rvagg committed Nov 28, 2018
1 parent a8e93f7 commit c15efce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/crypto/cipher.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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;
Expand Down

0 comments on commit c15efce

Please sign in to comment.