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 <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>
  • 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.