Skip to content

Commit

Permalink
v1.18.4 defaulted callback to a function in send message
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdemartini committed May 23, 2016
1 parent 99b1901 commit d620806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/sendMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ function createMessageSender(socketEmitter, mqttEmitter, parentConnection){
};

return function(fromDevice, data, topic, callback){
if(!_.isFunction(callback)) callback = _.noop;
var benchmark = new Benchmark({label: 'curried-function'});
data = _.clone(data);
if(!data.devices) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "meshblu-server",
"description": "communications platform and api for iot",
"version": "1.18.3",
"version": "1.18.4",
"author": "Octoblu, Inc.",
"dependencies": {
"@octoblu/redis-ns": "^0.1.1",
Expand Down Expand Up @@ -90,4 +90,4 @@
"url": "https://github.com/octoblu/meshblu/issues"
},
"homepage": "https://github.com/octoblu/meshblu"
}
}

0 comments on commit d620806

Please sign in to comment.