From de02d090e8df91e76b45ac957d63e479d3d02bfc Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Wed, 21 May 2025 16:33:01 +1000 Subject: [PATCH] refactor: fix issue --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index cdcbf00..499645b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -340,11 +340,11 @@ export default (options: ComponentOptions) => { } // Update text node - private _updateTextNode(node: Text, expr: string, template: string) { + private _updateTextNode(node: Text, _expr: string, template: string) { // Replace all expressions with the current state value let newContent = template - const replaceExpr = (match: string, expr: string) => { + const replaceExpr = (_match: string, expr: string) => { // Get the value of the expression const value = this._getNestedState(expr.trim()) return value !== undefined ? String(value) : ''