mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
removed useless env setup & simplified env access in function node
This commit is contained in:
@@ -158,13 +158,8 @@ module.exports = function(RED) {
|
||||
},
|
||||
env: {
|
||||
get: function(envVar) {
|
||||
if (node && node._flow) {
|
||||
var flow = node._flow;
|
||||
if (flow) {
|
||||
return flow.getSetting(envVar);
|
||||
}
|
||||
}
|
||||
return process.env[envVar];
|
||||
var flow = node._flow;
|
||||
return flow.getSetting(envVar);
|
||||
}
|
||||
},
|
||||
setTimeout: function () {
|
||||
|
Reference in New Issue
Block a user