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

master
indexzero 2011-11-24 00:14:52 -05:00
parent b658f68a89
commit 53d854a789
1 changed files with 1 additions and 1 deletions

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.