test: favor arrow function in callback
PR-URL: https://github.com/nodejs/node/pull/24542 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
f512f5ea13
commit
21522cb713
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user