Skip to content

Commit

Permalink
[minor] Replace bound function with arrow function
Browse files Browse the repository at this point in the history
Do not mask potential issues, like #1280, with bound arguments.
  • Loading branch information
lpinca committed Apr 23, 2018
1 parent 9dc25a3 commit 690b3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/websocket.js
Expand Up @@ -523,7 +523,7 @@ function initAsClient (address, protocols, options) {
if (options.handshakeTimeout) {
req.setTimeout(
options.handshakeTimeout,
abortHandshake.bind(null, this, req, 'Opening handshake has timed out')
() => abortHandshake(this, req, 'Opening handshake has timed out')
);
}

Expand Down

0 comments on commit 690b3f2

Please sign in to comment.