From 21522cb713250cb353d8fb43a70f936e32b88eaf Mon Sep 17 00:00:00 2001 From: Pranay Kothapalli Date: Wed, 21 Nov 2018 11:31:53 +0530 Subject: [PATCH] test: favor arrow function in callback PR-URL: https://github.com/nodejs/node/pull/24542 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- test/parallel/test-zlib-close-after-write.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-zlib-close-after-write.js b/test/parallel/test-zlib-close-after-write.js index d89102ed8c7fd9..211318dc5ad6cc 100644 --- a/test/parallel/test-zlib-close-after-write.js +++ b/test/parallel/test-zlib-close-after-write.js @@ -23,7 +23,7 @@ const common = require('../common'); const zlib = require('zlib'); -zlib.gzip('hello', common.mustCall(function(err, out) { +zlib.gzip('hello', common.mustCall((err, out) => { const unzip = zlib.createGunzip(); unzip.write(out); unzip.close(common.mustCall());