Permalink
Browse files

dont create a fake-cb

  • Loading branch information...
1 parent f879442 commit 17c0cbdaca855a8411e44ea09d7251ab7fa82da2 @guybrush guybrush committed Jun 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -66,7 +66,7 @@ module.exports = function (obj, raw) {
var args = [].slice.call(arguments)
var cb = ('function' == typeof args[args.length - 1])
? args.pop()
- : function(){}
+ : null
rpc(k, args, cb)
}
})

1 comment on commit 17c0cbd

@juliangruber
Collaborator

why that? Sometimes rpc call don't expect responses.

Please sign in to comment.