fix: only pickup a free worker with dynamic pool if the worker selection
[poolifier.git] / benchmarks / benchmarks-utils.js
index c04162e1a617d704708b56496040640947e22171..e6abe96d5b1e065c07b709bd83c37095e9996935 100644 (file)
@@ -62,9 +62,8 @@ function fibonacci (n) {
 function factorial (n) {
   if (n === 0) {
     return 1
-  } else {
-    return factorial(n - 1) * n
   }
+  return factorial(n - 1) * n
 }
 
 function executeWorkerFunction (data) {