From 507eaa02dfe026a5108759ecf3914cdbdba92305 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Thu, 30 Oct 2025 18:02:19 +0530 Subject: [PATCH] Use nullish coalescing assignment --- src/modules/ClientApi.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/ClientApi.ts b/src/modules/ClientApi.ts index 3f5272bb67..ef692fbad6 100644 --- a/src/modules/ClientApi.ts +++ b/src/modules/ClientApi.ts @@ -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; } }