couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [08/15] couchdb-nano git commit: Ensure fetch params is optional, fixes #319.
Date Wed, 11 Jan 2017 11:45:55 GMT
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 <andremiguelcruz@msn.com>
Authored: Sat Mar 26 22:03:43 2016 +0000
Committer: Glynn Bird <glynn.bird@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({


Mime
View raw message