lib/connection.js
function getResponseHandler(connection, cb) {
  return function (err, res) {
    if (res && !err) {
      err = null;
    }
    handleResponse(connection, err, res, cb);
  }
}
function getResponseHandler(connection, cb) {
  return function (err, res) {
    if (res && !err) {
      err = null;
    }
    handleResponse(connection, err, res, cb);
  }
}
function getResponseHandler ( connection , cb ) { return function ( err , res ) { if ( res && ! err ) { err = null ; } handleResponse ( connection , err , res , cb ) ; } }
Creates a generic, anonymous HTTP response handler to handle SuperAgent responses.
@param {Object} connection - Waterline connection configuration object
@param {Function} cb - function to call with query results.
@returns {Function} SuperAgent response handler
Creates a generic anonymous HTTP response handler to handle SuperAgent responses .