From adcc5b15f77ff962b607c2b10e223fe1f6d767ba Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 8 Nov 2016 16:32:07 -0800 Subject: [PATCH] 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 --- lib/zlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zlib.js b/lib/zlib.js index ce68e9cd105de0..7742e68ad6eb75 100644 --- a/lib/zlib.js +++ b/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);