more linting

This commit is contained in:
Dave Conway-Jones
2025-08-26 17:58:21 +01:00
parent dded26cd88
commit e3020985b7
7 changed files with 16 additions and 17 deletions

View File

@@ -65,8 +65,8 @@ module.exports = function(RED) {
// setup the node group for URI. Must have a node group or exit
var nodegroup = this.nodegroup || msg.nodegroup;
if (typeof nodegroup === "undefined") {
node.error("ERROR: A Node group must be specified - " + nodegroup);
node.status({fill:"red",shape:"ring",text:"No Nodegroup"});
node.error("ERROR: the nodegroup is undefined");
node.status({fill:"red",shape:"ring",text:"No nodegroup"});
return;
} else {
this.url += '&node=' + nodegroup;