From 151e140a27d84d5319f98839c73ac3ea492152be Mon Sep 17 00:00:00 2001 From: Pranay Kothapalli Date: Wed, 21 Nov 2018 11:31:53 +0530 Subject: [PATCH 1/2] test:favor arrow function in callback --- 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..bcb48937c54c6b 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()); From 389c79af7a377c53e277e037f06c632b408fa769 Mon Sep 17 00:00:00 2001 From: Pranay Kothapalli Date: Wed, 21 Nov 2018 12:11:04 +0530 Subject: [PATCH 2/2] lint: space is required before arrow to pass lint test --- 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 bcb48937c54c6b..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((err, out)=> { +zlib.gzip('hello', common.mustCall((err, out) => { const unzip = zlib.createGunzip(); unzip.write(out); unzip.close(common.mustCall());