mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: convert callback to arrow function
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
5d34cea8ab
commit
c779ca0cd1
1 file changed
+1
-1
@@ -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;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user