removed useless env setup & simplified env access in function node

This commit is contained in:
Hiroyasu Nishiyama
2019-01-29 21:39:59 +09:00
parent 0881c6a20b
commit ba3b64a6c6
2 changed files with 2 additions and 10 deletions

View File

@@ -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 () {