mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Re-lint a load of nodes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user