test: convert callback to arrow function

PR-URL: https://github.com/nodejs/node/pull/24513
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
jamesgeorge007 2018-11-23 21:41:32 +05:30 committed by Gireesh Punathil
parent db84fd24ca
commit afab340e67

View File

@ -45,7 +45,7 @@ const server = net.createServer((connection) => {
server.on('listening', () => {
const client = net.createConnection(common.PORT);
client.setEncoding('ascii');
client.on('data', function(d) {
client.on('data', (d) => {
console.log(d);
recv += d;
});