From 0234e17804b815ba0bc276435250770e72dadaae Mon Sep 17 00:00:00 2001 From: indexzero Date: Sat, 24 Sep 2011 23:40:57 -0400 Subject: [PATCH] [fix] Update bad variable reference --- lib/nconf/provider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/nconf/provider.js b/lib/nconf/provider.js index f257d5c..d9bf022 100644 --- a/lib/nconf/provider.js +++ b/lib/nconf/provider.js @@ -45,7 +45,8 @@ var Provider = exports.Provider = function (options) { this.add(options.store.name || options.store.type, options.store); } else if (options.stores) { - Object.keys(options.stores).forEach(function (store) { + Object.keys(options.stores).forEach(function (name) { + var store = options.stores[name]; self.add(store.name || store.type, store); }); }