mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-11 15:16:35 +02:00
Use nullish coalescing assignment
This commit is contained in:
parent
b94d40f166
commit
507eaa02df
@ -19,9 +19,7 @@ export class ClientApi implements IClientApi {
|
||||
}
|
||||
|
||||
public get accountData(): AccountDataApi {
|
||||
if (!this.accountDataApi) {
|
||||
this.accountDataApi = new AccountDataApi();
|
||||
}
|
||||
this.accountDataApi ??= new AccountDataApi();
|
||||
return this.accountDataApi;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user