We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6120028 commit 70eaf55Copy full SHA for 70eaf55
lib/_http_incoming.js
@@ -359,7 +359,11 @@ IncomingMessage.prototype._dump = function _dump() {
359
};
360
361
function onError(instance, cb, error) {
362
- instance.listenerCount('error') > 0 ? cb(error) : cb();
+ if (instance.listenerCount('error') > 0) {
363
+ cb(error);
364
+ } else {
365
+ cb();
366
+ }
367
}
368
369
module.exports = {
0 commit comments