From 4770a06679b997575a0baea89aea6ec6c45b3060 Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Fri, 18 Jul 2014 21:49:48 +0100 Subject: [PATCH] yet more JShint cleaning. --- nodes/core/io/21-httpin.js | 16 ++++++++-------- nodes/core/io/22-websocket.js | 14 +++++++++----- nodes/core/io/23-watch.js | 2 +- nodes/core/io/25-serial.js | 17 +++++++++++------ 4 files changed, 29 insertions(+), 20 deletions(-) diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index e00c907cf..099e80e1b 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -30,7 +30,7 @@ module.exports = function(RED) { var urlencParser = express.urlencoded(); function rawBodyParser(req, res, next) { - if (req._body) return next(); + if (req._body) { return next(); } req.body = ""; req._body = true; getBody(req, { @@ -38,7 +38,7 @@ module.exports = function(RED) { length: req.headers['content-length'], encoding: 'utf8' }, function (err, buf) { - if (err) return next(err); + if (err) { return next(err); } req.body = buf; next(); }); @@ -95,10 +95,10 @@ module.exports = function(RED) { } } if (RED.settings.httpNodeCors) { - var routes = RED.httpNode.routes['options']; - for (var i = 0; i