From 87a3b8241840a183ff2025ef47ee96a4571817b1 Mon Sep 17 00:00:00 2001 From: Jarrett Cruger Date: Wed, 26 Nov 2014 12:51:22 -0500 Subject: [PATCH] [fix] we shouldnt be reversing here fixes #127 --- lib/nconf/provider.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/nconf/provider.js b/lib/nconf/provider.js index 5a3d98f..93200a3 100644 --- a/lib/nconf/provider.js +++ b/lib/nconf/provider.js @@ -224,7 +224,7 @@ Provider.prototype.get = function (key, callback) { // the entire set of stores, but up until there is a defined value. // var current = 0, - names = Object.keys(this.stores).reverse(), + names = Object.keys(this.stores), self = this, response, mergeObjs = []; @@ -512,9 +512,6 @@ Provider.prototype._execute = function (action, syncLength /* [arguments] */) { mergeObjs = [], keys = Object.keys(this.stores); - if (action === 'get') { - keys = keys.reverse(); - } function runAction (name, next) { var store = self.stores[name];