Apply suggestions from code review

This commit is contained in:
Nick O'Leary
2025-06-06 11:00:13 +01:00
committed by GitHub
parent aaa4e60d58
commit 3f3450ce3e
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ module.exports = function(RED) {
function CompleteNode(n) {
RED.nodes.createNode(this,n);
var node = this;
this.scope = n.scope;
this.scope = n.scope || [];
// auto-filter out any directly connected nodes to avoid simple loopback
const w = this.wires.flat();

View File

@@ -20,7 +20,7 @@ module.exports = function(RED) {
function StatusNode(n) {
RED.nodes.createNode(this,n);
var node = this;
this.scope = n.scope;
this.scope = n.scope || [];
// auto-filter out any directly connected nodes to avoid simple loopback
const w = this.wires.flat();