Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 380da04

Browse filesBrowse files
jarthanacodebytere
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 5ad224d commit 380da04
Copy full SHA for 380da04

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-zlib-invalid-input.js
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.