| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -359,7 +359,11 @@ IncomingMessage.prototype._dump = function _dump() { | |||
| 359 | 359 | }; | |
| 360 | 360 | ||
| 361 | 361 | function onError(instance, cb, error) { | |
| 362 | - instance.listenerCount('error') > 0 ? cb(error) : cb(); | ||
| 362 | + if (instance.listenerCount('error') > 0) { | ||
| 363 | + cb(error); | ||
| 364 | + } else { | ||
| 365 | + cb(); | ||
| 366 | + } | ||
| 363 | 367 | } | |
| 364 | 368 | ||
| 365 | 369 | module.exports = { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments