test: replace anonymous closure functions with arrow functions
In test/parallel/test-fs-truncate-fd.js
, callbacks use anonymous
closure functions. It is safe to replace them with arrow functions since
these callbacks don't alter their context (this
). This results in
shorter functions.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines