From f07bc40d649928ded1570591efdad3ca4ba72c3d Mon Sep 17 00:00:00 2001 From: indexzero Date: Wed, 26 Nov 2014 01:06:44 -0500 Subject: [PATCH] [fix] Fix inconsistent style from #98. --- lib/nconf/stores/env.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/nconf/stores/env.js b/lib/nconf/stores/env.js index 3d7a7f9..27de753 100644 --- a/lib/nconf/stores/env.js +++ b/lib/nconf/stores/env.js @@ -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) {