From 963387cfd499f8dde0da18d2046dab76c5ba45d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Sun, 25 Dec 2011 15:30:48 +0100 Subject: [PATCH] [api] `File.saveSync()` should return store content Fixes #27. --- lib/nconf/stores/file.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nconf/stores/file.js b/lib/nconf/stores/file.js index cf5c63f..87449af 100644 --- a/lib/nconf/stores/file.js +++ b/lib/nconf/stores/file.js @@ -69,6 +69,7 @@ File.prototype.saveSync = function (value) { catch (ex) { throw(ex); } + return this.store; }; // @@ -221,4 +222,5 @@ File.prototype.search = function (base) { this.file = fullpath || this.file; return fullpath; -}; \ No newline at end of file +}; +