From 0ca052daa32d51f32ffd9a9f0c60251dc5be2158 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Wed, 20 Aug 2025 20:24:46 +0700 Subject: [PATCH] chore(web): simplify analyzeState return case per review Co-authored-by: Eberhard Beilharz --- .../worker-thread/src/main/correction/context-tracker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/engine/predictive-text/worker-thread/src/main/correction/context-tracker.ts b/web/src/engine/predictive-text/worker-thread/src/main/correction/context-tracker.ts index 5a38b180ec..85babe47e4 100644 --- a/web/src/engine/predictive-text/worker-thread/src/main/correction/context-tracker.ts +++ b/web/src/engine/predictive-text/worker-thread/src/main/correction/context-tracker.ts @@ -315,7 +315,7 @@ export class ContextTracker { this.cache.add(transitionId, result); } else { this.cache.add(priorMatchState.transitionId, priorMatchState); - return this.cache.get(priorMatchState.transitionId); + return priorMatchState; } }