Skip to content

Commit

Permalink
test: replace anonymous function with arrow
Browse files Browse the repository at this point in the history
PR-URL: #24527
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
codegagan authored and codebytere committed Jan 13, 2019
1 parent c03bd4a commit 194bf96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-tls-peer-certificate-encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ const options = {
ca: [ fixtures.readKey('ca2-cert.pem') ]
};

const server = tls.createServer(options, function(cleartext) {
const server = tls.createServer(options, (cleartext) => {
cleartext.end('World');
});
server.listen(0, common.mustCall(function() {
const socket = tls.connect({
port: this.address().port,
rejectUnauthorized: false
}, common.mustCall(function() {
}, common.mustCall(() => {
const peerCert = socket.getPeerCertificate();

console.error(util.inspect(peerCert));
Expand Down

0 comments on commit 194bf96

Please sign in to comment.