chore: uiStore.ts has identical duplicate reset() and resetUI() functions #49
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Minor
File:
src/lib/game/stores/uiStore.ts(lines 56-73)Problem: Both
resetandresetUIdo exactly the same thing — reset all UI state to initial values. This is dead code / unnecessary duplication.Impact: Confusing for developers. Which one should be called?
Fix: Remove one of them and update all callers to use the remaining one.
[priority: 1] CLEANUP — uiStore.ts has identical duplicate reset() and resetUI() functions.
Fixed: Removed duplicate resetUI() function from uiStore.ts. Updated caller in gameActions.ts to use reset() instead.