Browse Source

Unnecessary .call on callback

http2
Vsevolod Strukchinsky 10 years ago
parent
commit
2b58c4499f
  1. 2
      index.js

2
index.js

@ -104,7 +104,7 @@ function got(url, opts, cb) {
}
read(res, encoding, function (err, data) {
cb.call(null, err, data, response);
cb(err, data, response);
});
}).once('error', cb);

Loading…
Cancel
Save