refactor(infra): memento use undefined (#7491)

This commit is contained in:
EYHN
2024-07-15 02:48:20 +00:00
parent 2f784ae539
commit 0f1409756e
5 changed files with 22 additions and 22 deletions
@@ -19,7 +19,7 @@ export class WorkspaceLocalStateImpl implements WorkspaceLocalState {
return this.wrapped.keys();
}
get<T>(key: string): T | null {
get<T>(key: string): T | undefined {
return this.wrapped.get<T>(key);
}
@@ -27,7 +27,7 @@ export class WorkspaceLocalStateImpl implements WorkspaceLocalState {
return this.wrapped.watch<T>(key);
}
set<T>(key: string, value: T | null): void {
set<T>(key: string, value: T): void {
return this.wrapped.set<T>(key, value);
}
@@ -53,7 +53,7 @@ export class WorkspaceLocalCacheImpl implements WorkspaceLocalCache {
return this.wrapped.keys();
}
get<T>(key: string): T | null {
get<T>(key: string): T | undefined {
return this.wrapped.get<T>(key);
}
@@ -61,7 +61,7 @@ export class WorkspaceLocalCacheImpl implements WorkspaceLocalCache {
return this.wrapped.watch<T>(key);
}
set<T>(key: string, value: T | null): void {
set<T>(key: string, value: T): void {
return this.wrapped.set<T>(key, value);
}