Use nullish coalescing assignment

This commit is contained in:
R Midhun Suresh 2025-10-30 18:02:19 +05:30
parent b94d40f166
commit 507eaa02df
No known key found for this signature in database

View File

@ -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;
}
}