Skip to content

Commit

Permalink
[fix] we shouldnt be reversing here fixes #127
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed Nov 26, 2014
1 parent 6271cdb commit 87a3b82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/nconf/provider.js
Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 87a3b82

Please sign in to comment.