Skip to content

Commit

Permalink
fix isPipeName dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Elenbaas committed Oct 27, 2016
1 parent b5e59f3 commit 2fc008d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function normalizeConnectArgs(args) {
} else if (args[0] !== null && typeof args[0] === 'object') {
// connect(options, [cb])
options = args[0];
} else if (isPipeName(args[0])) {
} else if (typeof args[0] === 'string' && Number(args[0]) >= 0) {
// connect(path, [cb]);
options.path = args[0];
} else {
Expand Down

0 comments on commit 2fc008d

Please sign in to comment.