src/request.js
function rereq(options, done) {
  let req;

  req = https.request(options, (res) => {
    let chunk = '';

    res.on('data', (data) => {
      chunk += data;
    });
    res.on('end', () => {
      done(null, chunk.toString('utf8'));
    });
  });
  req.on('error', (e) => {
    done(e);
  });
  req.end();
}
function rereq(options, done) {
  let req;

  req = https.request(options, (res) => {
    let chunk = '';

    res.on('data', (data) => {
      chunk += data;
    });
    res.on('end', () => {
      done(null, chunk.toString('utf8'));
    });
  });
  req.on('error', (e) => {
    done(e);
  });
  req.end();
}
function rereq ( options , done ) { let req ; req = https . request ( options , ( res ) => { let chunk = '' ; res . on ( 'data' , ( data ) => { chunk += data ; } ) ; res . on ( 'end' , ( ) => { done ( null , chunk . toString ( 'utf8' ) ) ; } ) ; } ) ; req . on ( 'error' , ( e ) => { done ( e ) ; } ) ; req . end ( ) ; }
simpler request method for avoiding double-promise confusion
simpler request method for avoiding double - promise confusion