From d5543ead7c68dc263190b0b60dcba6b55c45a94c Mon Sep 17 00:00:00 2001 From: Jay Arthanareeswaran Date: Sat, 17 Nov 2018 17:20:51 +0530 Subject: [PATCH] test: change callback function to arrow function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/24419 Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Ouyang Yadong Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat --- test/parallel/test-zlib-invalid-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-zlib-invalid-input.js b/test/parallel/test-zlib-invalid-input.js index 1b081d919e9068..10c0f3622790d0 100644 --- a/test/parallel/test-zlib-invalid-input.js +++ b/test/parallel/test-zlib-invalid-input.js @@ -43,7 +43,7 @@ const unzips = [ nonStringInputs.forEach(common.mustCall((input) => { // zlib.gunzip should not throw an error when called with bad input. - zlib.gunzip(input, function(err, buffer) { + zlib.gunzip(input, (err, buffer) => { // zlib.gunzip should pass the error to the callback. assert.ok(err); });