From d126e5767f60b739017a7fc90a2a94f0ccb1ab83 Mon Sep 17 00:00:00 2001 From: Sagar Jadhav Date: Wed, 3 Jun 2020 18:01:53 +0530 Subject: [PATCH] test: changed function to arrow function Convert callback functions that are anonymous to arrow functions for better readability. --- test/parallel/test-util-promisify.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/parallel/test-util-promisify.js b/test/parallel/test-util-promisify.js index c18f454d2f77ef..cbbe8983fdf105 100644 --- a/test/parallel/test-util-promisify.js +++ b/test/parallel/test-util-promisify.js @@ -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))); } {