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

@@ -22,7 +22,8 @@ module.exports = function(RED) {
this.client = mqlight.createClient(opts, function(err) {
if (err) {
util.log('[mqlight] ['+id+'] not connected to service '+n.service);
} else {
}
else {
util.log('[mqlight] ['+id+'] connected to service '+n.service);
}
});
@@ -72,13 +73,15 @@ module.exports = function(RED) {
var subscribeCallback = function(err) {
if (err) {
node.error("Failed to subscribe: " + err);
} else {
}
else {
node.log("Subscribed to "+node.topic+(node.share?" ["+node.share+"]":""));
}
};
if (node.share) {
recvClient.subscribe(node.topic, node.share, subscribeCallback);
} else {
}
else {
recvClient.subscribe(node.topic, subscribeCallback);
}
});
@@ -113,7 +116,8 @@ module.exports = function(RED) {
if (topic === "") {
if (msg.topic) {
topic = msg.topic;
} else {
}
else {
node.warn("No topic set in MQ Light out node");
return;
}