garrensmith commented on a change in pull request #102: Promise support for
Nano - Issue 98
URL: https://github.com/apache/couchdb-nano/pull/102#discussion_r204712788
##########
File path: lib/nano.js
##########
@@ -68,6 +78,90 @@ module.exports = exports = nano = function dbScope(cfg) {
}
return str;
}
+ const responseHandler = function(req, opts, resolve, reject, callback) {
+
+ return function(err, response = { statusCode: 500 }, body = '') {
+ let parsed;
+ const responseHeaders = Object.assign({
Review comment:
Thanks this is much clearer to read.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services