From e75d4889e568040f0964a701790110e9ce19b876 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 --- 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); });