Skip to content

Commit d374e76

Browse files
sagar-jadhavcodebytere
authored andcommittedJul 9, 2020
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 <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>
1 parent 6f1d38c commit d374e76

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)