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 <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>
  • Loading branch information
ota-meshi authored and rvagg committed Feb 28, 2019
1 parent 6277a50 commit e861bea
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 @@ -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;
Expand Down

0 comments on commit e861bea

Please sign in to comment.