From 53d854a789769991ac5e22ab55397d08395c239c Mon Sep 17 00:00:00 2001 From: indexzero Date: Thu, 24 Nov 2011 00:14:52 -0500 Subject: [PATCH] [api] Default to `options` if `options.store` is not available in nconf.Literal --- lib/nconf/stores/literal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nconf/stores/literal.js b/lib/nconf/stores/literal.js index b2424b1..ed87bab 100644 --- a/lib/nconf/stores/literal.js +++ b/lib/nconf/stores/literal.js @@ -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.