refactor: cleanup object destructuration in examples
[poolifier.git] / benchmarks / internal / thread-worker.mjs
index e56eaa4cbcbb7cb0844439d3efd489278be15755..855ba62225e50513a1375eb84806a4c077cf61e2 100644 (file)
@@ -5,7 +5,7 @@ import { TaskFunctions } from '../benchmarks-types.mjs'
 
 const debug = false
 
-function taskFunction (data) {
+const taskFunction = (data) => {
   data = data || {}
   data.function = data.function || TaskFunctions.jsonIntegerSerialization
   const res = executeTaskFunction(data)