refactor: cleanup unneeded no null assertion
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 3 Jan 2024 22:43:55 +0000 (23:43 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 3 Jan 2024 22:43:55 +0000 (23:43 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/abstract-pool.ts

index 99744517ed6dc8261695ccfefaff71bee1cfc9a8..5d79cb43b09c18ea6c4f7b5fc46382822ba48a41 100644 (file)
@@ -1180,7 +1180,7 @@ export abstract class AbstractPool<
       }
     }
     // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
-    return this.workerChoiceStrategyContext!.execute()!
+    return this.workerChoiceStrategyContext!.execute()
   }
 
   /**