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_r203306011
##########
File path: lib/nano.js
##########
@@ -190,67 +269,13 @@ module.exports = exports = nano = function dbScope(cfg) {
log(req);
- if (!callback) {
- return httpAgent(req);
+ if (opts.stream) {
+ return httpAgent(req, responseHandler(req, opts, null, null, callback));
Review comment:
Nicely done.
----------------------------------------------------------------
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