Skip to content

Commit 216de5c

Browse files
committed
fix extract zip service worker prop init
1 parent 734f286 commit 216de5c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/services/ExtractZipServiceWorker.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ import path from 'node:path'
66
export class ExtractZipServiceWorker extends EventEmitter {
77
worker: Worker
88
initPromise: Promise<void>
9-
#resolveInitPromise: () => void = () => {
10-
console.error('resolve init promise not assigned!')
11-
}
9+
#resolveInitPromise: () => void
1210

1311
constructor(
1412
zipFile: string,
1513
destinationPath: string,
1614
options?: extractOptions
1715
) {
1816
super()
17+
this.#resolveInitPromise = () => {
18+
console.error('resolve init promise not assigned!')
19+
}
1920
this.initPromise = new Promise((res) => {
2021
this.#resolveInitPromise = res
2122
})

0 commit comments

Comments
 (0)