You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2017/01/11 11:45:55 UTC

[08/15] couchdb-nano git commit: Ensure fetch params is optional, fixes #319.

Ensure fetch params is optional, fixes #319.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-nano/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-nano/commit/118e2098
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-nano/tree/118e2098
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-nano/diff/118e2098

Branch: refs/heads/master
Commit: 118e2098b93f77fae4b2daf2070d3e2735a3b095
Parents: 93db52d
Author: Andr� Cruz <an...@msn.com>
Authored: Sat Mar 26 22:03:43 2016 +0000
Committer: Glynn Bird <gl...@gmail.com>
Committed: Wed Oct 26 14:35:11 2016 +0100

----------------------------------------------------------------------
 lib/nano.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-nano/blob/118e2098/lib/nano.js
----------------------------------------------------------------------
diff --git a/lib/nano.js b/lib/nano.js
index be93a5d..cf6f709 100644
--- a/lib/nano.js
+++ b/lib/nano.js
@@ -60,7 +60,7 @@ module.exports = exports = nano = function dbScope(cfg) {
       return db;
     }
   }
-  
+
   function scrub(str) {
     if (str) {
       str = str.replace(/\/\/(.*)@/,"//XXXXXX:XXXXXX@");
@@ -471,6 +471,7 @@ module.exports = exports = nano = function dbScope(cfg) {
         qs = {};
       }
 
+      qs = qs || {};
       qs['include_docs'] = true;
 
       return relax({