Skip to content

Commit 5025d7b

Browse files
committed
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 77ec310 commit 5025d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zlib.js

Lines changed: 1 addition & 1 deletion
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)