Skip to content

Commit 5b0cee8

Browse files
arve0danielmewes
authored andcommitted
Fix issue #5846 (#5847)
Make `r.connect` argument truly optional.
1 parent e1071b5 commit 5b0cee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ module.exports.connect = varar 0, 2, (hostOrCallback, callback) ->
16291629
# Otherwise, the `callback` variable is already correctly
16301630
# holding the callback, and the host variable is the first
16311631
# argument
1632-
host = hostOrCallback
1632+
host = hostOrCallback || {}
16331633

16341634
# `r.connect` returns a Promise which does the following:
16351635
#

0 commit comments

Comments
 (0)