From 372073e8daff713ff3b3b3027be4532cd4b721a7 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Fri, 23 Nov 2018 21:41:32 +0530 Subject: [PATCH] test: convert callback to arrow function PR-URL: https://github.com/nodejs/node/pull/24513 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- test/pummel/test-net-pause.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pummel/test-net-pause.js b/test/pummel/test-net-pause.js index f9ea33dc93c172..512d833ae75717 100644 --- a/test/pummel/test-net-pause.js +++ b/test/pummel/test-net-pause.js @@ -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; });