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: nodejs#33711
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
  • Loading branch information
sagar-jadhav authored and juanarbol committed Jun 6, 2020
1 parent bf33b61 commit 3ac50e1
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 3ac50e1

Please sign in to comment.