Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup: simplify conditional further
  • Loading branch information
apapirovski committed May 2, 2018
commit 71a1aa1b9021b20e98305143afaf034d6e76171c
2 changes: 1 addition & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function _addListener(target, type, listener, prepend) {

// Check for listener leak
m = $getMaxListeners(target);
if (m && m > 0 && existing.length > m && !existing.warned) {
if (m > 0 && existing.length > m && !existing.warned) {
existing.warned = true;
// No error code for this since it is a Warning
// eslint-disable-next-line no-restricted-syntax
Expand Down