Skip to content

Commit d5543ea

Browse files
jarthanarvagg
authored andcommitted
test: change callback function to arrow function
PR-URL: #24419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 5d66310 commit d5543ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-zlib-invalid-input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const unzips = [
4343

4444
nonStringInputs.forEach(common.mustCall((input) => {
4545
// zlib.gunzip should not throw an error when called with bad input.
46-
zlib.gunzip(input, function(err, buffer) {
46+
zlib.gunzip(input, (err, buffer) => {
4747
// zlib.gunzip should pass the error to the callback.
4848
assert.ok(err);
4949
});

0 commit comments

Comments
 (0)