Skip to content

Commit

Permalink
[fix] Fix inconsistent style from #98.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Nov 26, 2014
1 parent d5bd26c commit f07bc40
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/nconf/stores/env.js
Expand Up @@ -53,11 +53,13 @@ Env.prototype.loadEnv = function () {

this.readOnly = false;
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
} 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) {
Expand Down

0 comments on commit f07bc40

Please sign in to comment.