From b3de68bdfde65933bec8820d04d13b368fe6d49b Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Wed, 21 Nov 2018 00:17:42 +0530 Subject: [PATCH] test: replace anonymous function with arrow function --- test/parallel/test-tls-peer-certificate-encoding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-tls-peer-certificate-encoding.js b/test/parallel/test-tls-peer-certificate-encoding.js index 19c7cde42cdc16..154c31c0a1386b 100644 --- a/test/parallel/test-tls-peer-certificate-encoding.js +++ b/test/parallel/test-tls-peer-certificate-encoding.js @@ -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));