test: cleanup worker function
[poolifier.git] / tests / test-utils.js
index 6d3592c1b5d2e2798c00b95fe213c1c630370c96..894471697cb42cc408c906021ee28e87147fcfbc 100644 (file)
@@ -77,9 +77,8 @@ class TestUtils {
   static factorial (n) {
     if (n === 0) {
       return 1
-    } else {
-      return TestUtils.factorial(n - 1) * n
     }
+    return TestUtils.factorial(n - 1) * n
   }
 
   static executeWorkerFunction (data) {