Skip to content

Commit

Permalink
cluster: remove unnecessary bind
Browse files Browse the repository at this point in the history
  • Loading branch information
apapirovski committed Dec 13, 2019
1 parent a560c73 commit d077f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/cluster/child.js
Expand Up @@ -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);
Expand Down

0 comments on commit d077f00

Please sign in to comment.