[api] Default to options if options.store is not available in nconf.Literal

This commit is contained in:
indexzero 2011-11-24 00:14:52 -05:00
parent b658f68a89
commit 53d854a789

View file

@ -14,7 +14,7 @@ var Literal = exports.Literal = function Literal (options) {
options = options || {}
this.type = 'literal';
this.readOnly = true;
this.store = options.store || {};
this.store = options.store || options;
};
// Inherit from Memory store.