mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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: https://github.com/nodejs/node/pull/9524 Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
841a2c41d4
commit
adcc5b15f7
1 file changed
+1
-1
+1
-1
@@ -346,7 +346,7 @@ function Zlib(opts, mode) {
|
||||
|
||||
var self = this;
|
||||
this._hadError = false;
|
||||
this._handle.onerror = function onErrorHandler(message, errno) {
|
||||
this._handle.onerror = function(message, errno) {
|
||||
// there is no way to cleanly recover.
|
||||
// continuing only obscures problems.
|
||||
_close(self);
|
||||
|
||||
Reference in new issue
Block a user