From 4255308010fd504c6b34da71ca831f8763046603 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Mon, 30 Jun 2025 18:06:06 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8(frontend)=20mark=20non-reassigned?= =?UTF-8?q?=20private=20attributes=20as=20readonly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add readonly modifier to private class attributes that are never reassigned after initialization. Improves code safety and clearly communicates immutable intent to other developers. --- src/frontend/src/features/sdk/utils/CallbackIdHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/features/sdk/utils/CallbackIdHandler.ts b/src/frontend/src/features/sdk/utils/CallbackIdHandler.ts index 1e071eb9..aeee0736 100644 --- a/src/frontend/src/features/sdk/utils/CallbackIdHandler.ts +++ b/src/frontend/src/features/sdk/utils/CallbackIdHandler.ts @@ -1,5 +1,5 @@ export class CallbackIdHandler { - private storageKey = 'popup_callback_id' + private readonly storageKey = 'popup_callback_id' private generateId(): string { return (