Skip to content

Commit

Permalink
test: use arrow syntax for anonymous callbacks
Browse files Browse the repository at this point in the history
PR-URL: #24691
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
Shubhamurkade authored and BridgeAR committed Dec 5, 2018
1 parent 87c864c commit 0894899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-net-persistent-ref-unref.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const net = require('net');
const { internalBinding } = require('internal/test/binding');
const TCPWrap = internalBinding('tcp_wrap').TCP;

const echoServer = net.createServer(function(conn) {
const echoServer = net.createServer((conn) => {
conn.end();
});

Expand Down Expand Up @@ -34,7 +34,7 @@ echoServer.on('listening', function() {
sock.unref();
sock.ref();
sock.connect(this.address().port);
sock.on('end', function() {
sock.on('end', () => {
assert.strictEqual(refCount, 0);
echoServer.close();
});
Expand Down

0 comments on commit 0894899

Please sign in to comment.