Skip to content

Commit f76f143

Browse files
apapirovskitargos
authored andcommitted
cluster: remove unnecessary bind
PR-URL: #28131 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent dce435d commit f76f143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/cluster/child.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ function shared(message, handle, indexesKey, cb) {
116116
send({ act: 'close', key });
117117
handles.delete(key);
118118
indexes.delete(indexesKey);
119-
return close.apply(this, arguments);
120-
}.bind(handle);
119+
return close.apply(handle, arguments);
120+
};
121121
assert(handles.has(key) === false);
122122
handles.set(key, handle);
123123
cb(message.errno, handle);

0 commit comments

Comments
 (0)