Skip to content

Commit 39adfc8

Browse files
codegaganrvagg
authored andcommitted
test: replace anonymous function with arrow
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>
1 parent 6b88541 commit 39adfc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-tls-peer-certificate-encoding.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ const options = {
3535
ca: [ fixtures.readKey('ca2-cert.pem') ]
3636
};
3737

38-
const server = tls.createServer(options, function(cleartext) {
38+
const server = tls.createServer(options, (cleartext) => {
3939
cleartext.end('World');
4040
});
4141
server.listen(0, common.mustCall(function() {
4242
const socket = tls.connect({
4343
port: this.address().port,
4444
rejectUnauthorized: false
45-
}, common.mustCall(function() {
45+
}, common.mustCall(() => {
4646
const peerCert = socket.getPeerCertificate();
4747

4848
console.error(util.inspect(peerCert));

0 commit comments

Comments
 (0)