Skip to content

Commit 5150451

Browse files
committed
small improvement
1 parent b97f105 commit 5150451

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cache.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ export interface Clearable {
22
clear(): void;
33
}
44
export class Cache {
5-
caches: Array<Clearable> = [];
5+
#caches: Array<Clearable> = [];
66
add(cache: Clearable): void {
7-
this.caches.push(cache);
7+
this.#caches.push(cache);
88
}
99
clear(): void {
10-
for (const cache of this.caches) {
10+
for (const cache of this.#caches) {
1111
cache.clear();
1212
}
1313
}

0 commit comments

Comments
 (0)