Skip to content

Commit c3ac47c

Browse files
sagar-jadhavcodebytere
authored andcommitted
test: changed function to arrow function
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]>
1 parent a3ef2b7 commit c3ac47c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/parallel/test-util-promisify.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ const stat = promisify(fs.stat);
143143

144144
o.fn = fn;
145145

146-
o.fn().then(common.mustCall(function(val) {
147-
assert(val);
148-
}));
146+
o.fn().then(common.mustCall((val) => assert(val)));
149147
}
150148

151149
{

0 commit comments

Comments
 (0)