From 34ba1fedc507d1c15f58b3ab24323f757d63ae4a Mon Sep 17 00:00:00 2001 From: Loren West Date: Thu, 25 Dec 2014 22:45:58 -0800 Subject: [PATCH] Fixed lint issues --- lib/api/routes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api/routes.js b/lib/api/routes.js index 864a2b5..bdc91fe 100644 --- a/lib/api/routes.js +++ b/lib/api/routes.js @@ -130,10 +130,10 @@ router.get("/robots/:robot/connections/:connection", load, function(req, res) { // or asynchronously if the result is a Promise. router.runCommand = function(req, res, my, command) { var result = command.apply(my, req.commandParams); - if (typeof result.then === 'function') { + if (typeof result.then === "function") { result - .then(function(result) {return res.json({result: result})}) - .catch(function(err) {return res.status(500).json({error: err})}); + .then(function(result) {return res.json({result: result});}) + .catch(function(err) {return res.status(500).json({error: err});}); } else { res.json({ result: result });