Skip to content

Commit a82b420

Browse files
jamesgeorge007rvagg
authored andcommitted
test: convert callback to arrow function
PR-URL: #24513 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 7edea03 commit a82b420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pummel/test-net-pause.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const server = net.createServer((connection) => {
4545
server.on('listening', () => {
4646
const client = net.createConnection(common.PORT);
4747
client.setEncoding('ascii');
48-
client.on('data', function(d) {
48+
client.on('data', (d) => {
4949
console.log(d);
5050
recv += d;
5151
});

0 commit comments

Comments
 (0)