Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
crypto: convert to arrow function in lib/internal/crypto/cipher.js
Changed function expression to arrow function.
  • Loading branch information
ota-meshi committed Nov 24, 2018
commit 113b3c85f3a1bce8551520747ea3587aa08cd6ba
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