Re-lint a load of nodes

This commit is contained in:
Dave Conway-Jones
2017-01-29 17:45:44 +00:00
parent 603189f123
commit 316a2fd272
42 changed files with 447 additions and 254 deletions

View File

@@ -34,7 +34,8 @@ module.exports = function(RED) {
else {
if (msg.payload.indexOf(':') > -1) {
this.url += 'json={' + msg.payload + '}';
} else {
}
else {
this.url += 'csv='+msg.payload;
}
}
@@ -96,7 +97,8 @@ module.exports = function(RED) {
if (msg.rc === 200) {
try {
msg.payload = JSON.parse(msg.payload);
} catch(err) {
}
catch(err) {
// Failed to parse, pass it on
}
node.send(msg);