Skip to content

Commit

Permalink
test: convert callback to arrow function
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jamesgeorge007 authored and rvagg committed Nov 28, 2018
1 parent 7edea03 commit a82b420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pummel/test-net-pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit a82b420

Please sign in to comment.