[fix] Fix inconsistent style from #98.

This commit is contained in:
indexzero 2014-11-26 01:06:44 -05:00
parent d5bd26c0b6
commit f07bc40d64

View file

@ -55,9 +55,11 @@ Env.prototype.loadEnv = function () {
Object.keys(process.env).filter(function (key) {
if (self.match && self.whitelist.length) {
return key.match(self.match) || self.whitelist.indexOf(key) !== -1
} else if (self.match) {
}
else if (self.match) {
return key.match(self.match)
} else {
}
else {
return !self.whitelist.length || self.whitelist.indexOf(key) !== -1
}
}).forEach(function (key) {