Skip to content

Commit

Permalink
test: changed function to arrow function
Browse files Browse the repository at this point in the history
Convert callback functions that are anonymous
to arrow functions for better readability.

PR-URL: #33711
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Zeyu Yang <[email protected]>
  • Loading branch information
sagar-jadhav authored and codebytere committed Jun 18, 2020
1 parent a3ef2b7 commit c3ac47c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/parallel/test-util-promisify.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ const stat = promisify(fs.stat);

o.fn = fn;

o.fn().then(common.mustCall(function(val) {
assert(val);
}));
o.fn().then(common.mustCall((val) => assert(val)));
}

{
Expand Down

0 comments on commit c3ac47c

Please sign in to comment.