[fix] Fix inconsistent style from #98.
This commit is contained in:
parent
d5bd26c0b6
commit
f07bc40d64
1 changed files with 5 additions and 3 deletions
|
@ -55,9 +55,11 @@ Env.prototype.loadEnv = function () {
|
||||||
Object.keys(process.env).filter(function (key) {
|
Object.keys(process.env).filter(function (key) {
|
||||||
if (self.match && self.whitelist.length) {
|
if (self.match && self.whitelist.length) {
|
||||||
return key.match(self.match) || self.whitelist.indexOf(key) !== -1
|
return key.match(self.match) || self.whitelist.indexOf(key) !== -1
|
||||||
} else if (self.match) {
|
}
|
||||||
|
else if (self.match) {
|
||||||
return key.match(self.match)
|
return key.match(self.match)
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
return !self.whitelist.length || self.whitelist.indexOf(key) !== -1
|
return !self.whitelist.length || self.whitelist.indexOf(key) !== -1
|
||||||
}
|
}
|
||||||
}).forEach(function (key) {
|
}).forEach(function (key) {
|
||||||
|
|
Loading…
Reference in a new issue