diff options
author | Anatoli Papirovski <anatoli.papirovski@postmates.com> | 2019-06-08 11:03:26 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-12-14 17:01:52 +0300 |
commit | 2e738fb6b53903d11d2557acfe4b17c7c60c3a6b (patch) | |
tree | bebaab6f34e4128ddaee0b5339107e00288229eb /lib/internal/cluster | |
parent | af6c88c571ae0a00d9b6a8a62379635deab21cb5 (diff) |
cluster: remove unnecessary bind
PR-URL: https://github.com/nodejs/node/pull/28131
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/internal/cluster')
-rw-r--r-- | lib/internal/cluster/child.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/cluster/child.js b/lib/internal/cluster/child.js index 80db676e6b2..ed5d7ce76db 100644 --- a/lib/internal/cluster/child.js +++ b/lib/internal/cluster/child.js @@ -118,8 +118,8 @@ function shared(message, handle, indexesKey, cb) { send({ act: 'close', key }); handles.delete(key); indexes.delete(indexesKey); - return close.apply(this, arguments); - }.bind(handle); + return close.apply(handle, arguments); + }; assert(handles.has(key) === false); handles.set(key, handle); cb(message.errno, handle); |