From 841e09c88da5c3feca6c57cc6c891760b0f522f2 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 10 Oct 2026 06:17:22 +0000 Subject: [PATCH] chore(core): remove redundant control type assertion Removes an unnecessary assertion from the control reset path and prunes its ESLint suppression. Runtime behavior and the public API remain unchanged. Signed-off-by: Cursor Agent --- projects/core/eslint-suppressions.json | 5 ----- projects/core/src/forms/control/control.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/core/eslint-suppressions.json b/projects/core/eslint-suppressions.json index 8cac82ac2e..61f6989b71 100644 --- a/projects/core/eslint-suppressions.json +++ b/projects/core/eslint-suppressions.json @@ -24,11 +24,6 @@ "count": 40 } }, - "src/forms/control/control.ts": { - "@typescript-eslint/no-unnecessary-type-assertion": { - "count": 1 - } - }, "src/forms/utils/states.ts": { "@typescript-eslint/no-unnecessary-type-assertion": { "count": 1 diff --git a/projects/core/src/forms/control/control.ts b/projects/core/src/forms/control/control.ts index 673a90bb77..d0fbc95eba 100644 --- a/projects/core/src/forms/control/control.ts +++ b/projects/core/src/forms/control/control.ts @@ -185,7 +185,7 @@ export class Control extends LitElement { /** Resets control value to initial attribute value and clears any active validation rules. */ reset() { - this.#resetInputValue(this.input as ControlInput); + this.#resetInputValue(this.input); this.requestUpdate(); this.dispatchEvent(new CustomEvent('reset', { bubbles: true, composed: true })); }