Skip to content

Commit

Permalink
http: fix condition
Browse files Browse the repository at this point in the history
Co-authored-by: Toni Villena <tonivj5@Gmail.com>
  • Loading branch information
ShogunPanda and tonivj5 authored Jun 28, 2022
1 parent f8244c0 commit d3d04fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ function socketOnError(e) {
// Ignore further errors
this.removeListener('error', socketOnError);

if (!this.listenerCount('error') === 0) {
if (this.listenerCount('error') === 0) {
this.on('error', noop);
}

Expand Down

0 comments on commit d3d04fd

Please sign in to comment.