Skip to content

Commit 460016f

Browse files
author
Tony Crisci
authored
Merge pull request #90 from leithouse/patch-1
Fix breaking change: negotiateUnixFd
2 parents 767853f + 0fa8372 commit 460016f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ let createClient = function(params) {
2121
* @param {object} [options.negotiateUnixFd] - Whether this bus should support the negotiation of Unix file descriptors.
2222
*/
2323
module.exports.systemBus = function(opts) {
24+
if(!opts)
25+
opts = {};
2426
return createClient({
2527
negotiateUnixFd: opts.negotiateUnixFd,
2628
busAddress:

0 commit comments

Comments
 (0)