Skip to content

Commit ecf825b

Browse files
committed
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 <cursoragent@cursor.com>
1 parent 502b9f3 commit ecf825b

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

‎projects/core/eslint-suppressions.json‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
"count": 40
2525
}
2626
},
27-
"src/forms/control/control.ts": {
28-
"@typescript-eslint/no-unnecessary-type-assertion": {
29-
"count": 1
30-
}
31-
},
3227
"src/forms/utils/states.ts": {
3328
"@typescript-eslint/no-unnecessary-type-assertion": {
3429
"count": 1

‎projects/core/src/forms/control/control.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class Control extends LitElement {
185185

186186
/** Resets control value to initial attribute value and clears any active validation rules. */
187187
reset() {
188-
this.#resetInputValue(this.input as ControlInput);
188+
this.#resetInputValue(this.input);
189189
this.requestUpdate();
190190
this.dispatchEvent(new CustomEvent('reset', { bubbles: true, composed: true }));
191191
}

0 commit comments

Comments
 (0)