diff --git a/lib/nconf/provider.js b/lib/nconf/provider.js index 56d0a71..fdb0d7b 100644 --- a/lib/nconf/provider.js +++ b/lib/nconf/provider.js @@ -42,9 +42,10 @@ var Provider = exports.Provider = function (options) { ['defaults', 'overrides'].forEach(function (type) { Provider.prototype[type] = function (options) { options = options || {}; - if(!options.type) { + if (!options.type) { options.type = 'literal'; } + return this.add(type, options); }; });