repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-client-pool/types/node-20...
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
express-worker_threads
/
src
/
worker.ts
diff --git
a/examples/typescript/http-server-pool/express-worker_threads/src/worker.ts
b/examples/typescript/http-server-pool/express-worker_threads/src/worker.ts
index 3f573647b34cef414a6b62baeb3227aefac29971..223ee36859fe2b0b2d1fd71704627e9928dfeb7f 100644
(file)
--- a/
examples/typescript/http-server-pool/express-worker_threads/src/worker.ts
+++ b/
examples/typescript/http-server-pool/express-worker_threads/src/worker.ts
@@
-24,9
+24,7
@@
class RequestHandlerWorker<
factorial: (workerData?: Data) => {
return {
body: {
- number: RequestHandlerWorker.factorial(
- workerData?.body?.number as number
- )
+ number: RequestHandlerWorker.factorial(workerData!.body.number!)
}
} as unknown as Response
}