Skip to content

Commit 447c315

Browse files
committed
Remove unnecessary code
1 parent b1afc6f commit 447c315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

11-advanced-recipes/08-cpu-bound/threadPool.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export class ThreadPool {
2323
}
2424

2525
worker = new Worker(this.file)
26-
worker.once('online', message => {
26+
worker.once('online', () => {
2727
this.active.push(worker)
28-
return resolve(worker)
28+
resolve(worker)
2929
})
3030
worker.once('exit', code => {
3131
console.log(`Worker exited with code ${code}`)

0 commit comments

Comments
 (0)