Skip to content

Commit

Permalink
fixed merge issue in Provider.load by reversing store keys in getStores
Browse files Browse the repository at this point in the history
  • Loading branch information
jstewmon authored and indexzero committed Jan 2, 2012
1 parent 2804b1f commit 5c43d54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/nconf/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ Provider.prototype.load = function (callback) {
var self = this;

function getStores () {
return Object.keys(self.stores).map(function (name) {
var stores = Object.keys(self.stores);
stores.reverse();
return stores.map(function (name) {
return self.stores[name];
});
}
Expand Down

0 comments on commit 5c43d54

Please sign in to comment.