The Wayback Machine - https://web.archive.org/web/20220320055718/https://github.com/nodejs/node/commit/adcc5b15f7
Skip to content
Permalink
Browse files
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 <anna@addaleax.net>
  • Loading branch information
Trott authored and addaleax committed Nov 22, 2016
1 parent 841a2c4 commit adcc5b15f77ff962b607c2b10e223fe1f6d767ba
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/zlib.js
@@ -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);

0 comments on commit adcc5b1

Please sign in to comment.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.