Skip to content

Commit adcc5b1

Browse files
Trottaddaleax
authored andcommitted
zlib: fix linting recently-introduced lint error
Remove unnecessary named function. V8 will do a better job inferring the name from the assignment to a property. The current formulation does not pass linting. PR-URL: #9524 Reviewed-By: Anna Henningsen <[email protected]>
1 parent 841a2c4 commit adcc5b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zlib.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function Zlib(opts, mode) {
346346

347347
var self = this;
348348
this._hadError = false;
349-
this._handle.onerror = function onErrorHandler(message, errno) {
349+
this._handle.onerror = function(message, errno) {
350350
// there is no way to cleanly recover.
351351
// continuing only obscures problems.
352352
_close(self);

0 commit comments

Comments
 (0)