refactor: cleanup object destructuration in examples
[poolifier.git] / benchmarks / internal / cluster-worker.mjs
index efbcf7b1cfd0bbf60c126f8f5af716b3c6a7dd45..bc3548394616f1426f48dda0c8a4e9719937e15d 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)