mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 02:35:58 +08:00
style: enable rxjs/finnish (#6276)
chore(infra): use finnish notation for observables do rename
This commit is contained in:
@@ -40,12 +40,12 @@ export class MemoryMemento implements Memento {
|
||||
private readonly data = new Map<string, LiveData<any>>();
|
||||
|
||||
private getLiveData(key: string): LiveData<any> {
|
||||
let data = this.data.get(key);
|
||||
if (!data) {
|
||||
data = new LiveData<any>(null);
|
||||
this.data.set(key, data);
|
||||
let data$ = this.data.get(key);
|
||||
if (!data$) {
|
||||
data$ = new LiveData<any>(null);
|
||||
this.data.set(key, data$);
|
||||
}
|
||||
return data;
|
||||
return data$;
|
||||
}
|
||||
|
||||
get<T>(key: string): T | null {
|
||||
|
||||
Reference in New Issue
Block a user