[api] Default to `options` if `options.store` is not available in nconf.Literal
parent
b658f68a89
commit
53d854a789
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue