mirror of
https://github.com/node-red/node-red
synced 2024-11-23 17:23:56 +00:00
Move envVarExcludes
to the top scope
This commit is contained in:
parent
7555e0644f
commit
2fd7aee4da
@ -22,6 +22,11 @@ module.exports = function(RED) {
|
||||
var acorn = require("acorn");
|
||||
var acornWalk = require("acorn-walk");
|
||||
|
||||
const envVarExcludes = {};
|
||||
if (RED.settings.envVarExcludes && Array.isArray(RED.settings.envVarExcludes)) {
|
||||
RED.settings.envVarExcludes.forEach((e) => envVarExcludes[e] = true);
|
||||
}
|
||||
|
||||
function sendResults(node,send,_msgid,msgs,cloneFirstMessage) {
|
||||
if (msgs == null) {
|
||||
return;
|
||||
@ -158,11 +163,6 @@ module.exports = function(RED) {
|
||||
node.outstandingIntervals = [];
|
||||
node.clearStatus = false;
|
||||
|
||||
const envVarExcludes = {};
|
||||
if (RED.settings.envVarExcludes && Array.isArray(RED.settings.envVarExcludes)) {
|
||||
RED.settings.envVarExcludes.forEach((e) => envVarExcludes[e] = true);
|
||||
}
|
||||
|
||||
var sandbox = {
|
||||
console:console,
|
||||
util:util,
|
||||
|
Loading…
Reference in New Issue
Block a user