diff options
author | Jay Arthanareeswaran <jarthana@in.ibm.com> | 2018-11-17 17:20:51 +0530 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2018-11-19 16:25:25 +0530 |
commit | f63dc27eecf21b004e1656b779622742a863deb9 (patch) | |
tree | 77bfe68bbb1b9dee155f61653fd2c927d5ea82e9 /test | |
parent | b4af0c49eaa2f479476f021c5ff8dbd7a05fe38b (diff) | |
download | android-node-v8-f63dc27eecf21b004e1656b779622742a863deb9.tar.gz android-node-v8-f63dc27eecf21b004e1656b779622742a863deb9.tar.bz2 android-node-v8-f63dc27eecf21b004e1656b779622742a863deb9.zip |
test: change callback function to arrow function
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-zlib-invalid-input.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-zlib-invalid-input.js b/test/parallel/test-zlib-invalid-input.js index 1b081d919e..10c0f36227 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); }); |