Skip to content

Commit 701003f

Browse files
chore: remove wasInitialized
1 parent 2136a88 commit 701003f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/common/exportsManager.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ type ExportsManagerEvents = {
6464
};
6565

6666
export class ExportsManager extends EventEmitter<ExportsManagerEvents> {
67-
private wasInitialized: boolean = false;
6867
private isShuttingDown: boolean = false;
6968
private storedExports: Record<StoredExport["exportName"], StoredExport> = {};
7069
private exportsCleanupInProgress: boolean = false;
@@ -96,13 +95,11 @@ export class ExportsManager extends EventEmitter<ExportsManagerEvents> {
9695
}
9796

9897
protected init(): void {
99-
if (!this.wasInitialized) {
98+
if (!this.exportsCleanupInterval) {
10099
this.exportsCleanupInterval = setInterval(
101100
() => void this.cleanupExpiredExports(),
102101
this.config.exportCleanupIntervalMs
103102
);
104-
105-
this.wasInitialized = true;
106103
}
107104
}
108105

0 commit comments

Comments
 (0)