From 59c2ee0c379b44b3ad8728ac892659ddfe96204d Mon Sep 17 00:00:00 2001 From: Naojirou Hisada Date: Sat, 24 Nov 2018 16:13:41 +0900 Subject: [PATCH] lib: convert to arrow function PR-URL: https://github.com/nodejs/node/pull/24596 Reviewed-By: Ron Korving Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- lib/internal/socket_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/socket_list.js b/lib/internal/socket_list.js index d12686e1de107d..8cd7b1e0ed9057 100644 --- a/lib/internal/socket_list.js +++ b/lib/internal/socket_list.js @@ -47,7 +47,7 @@ class SocketListSend extends EventEmitter { this._request({ cmd: 'NODE_SOCKET_GET_COUNT', key: this.key - }, 'NODE_SOCKET_COUNT', false, function(err, msg) { + }, 'NODE_SOCKET_COUNT', false, (err, msg) => { if (err) return callback(err); callback(null, msg.count); });