Skip to content

Commit 1b8d2ca

Browse files
MaleDongaddaleax
MaleDong
authored andcommitted
lib: remove dollar symbol for private function
Just remove '$' because this isn't a programming language like Python. PR-URL: #25590 Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent c72c4b0 commit 1b8d2ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/events.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
9393
return this;
9494
};
9595

96-
function $getMaxListeners(that) {
96+
function _getMaxListeners(that) {
9797
if (that._maxListeners === undefined)
9898
return EventEmitter.defaultMaxListeners;
9999
return that._maxListeners;
100100
}
101101

102102
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
103-
return $getMaxListeners(this);
103+
return _getMaxListeners(this);
104104
};
105105

106106
// Returns the length and line number of the first sequence of `a` that fully
@@ -247,7 +247,7 @@ function _addListener(target, type, listener, prepend) {
247247
}
248248

249249
// Check for listener leak
250-
m = $getMaxListeners(target);
250+
m = _getMaxListeners(target);
251251
if (m > 0 && existing.length > m && !existing.warned) {
252252
existing.warned = true;
253253
// No error code for this since it is a Warning

0 commit comments

Comments
 (0)