diff --git a/lib/sphero.js b/lib/sphero.js index 49940c4..7f5686c 100644 --- a/lib/sphero.js +++ b/lib/sphero.js @@ -90,7 +90,7 @@ Sphero.prototype.connect = function(callback) { connection.on("open", emit("open")); connection.open(function(error) { - if(error) { + if (error) { callback(error); return; }