From 1f3d2708461db0ee6b83a05f4e1b34e004a60db7 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Thu, 28 Aug 2025 21:38:59 +0700 Subject: [PATCH] change(web): apply code-styling suggestions Co-authored-by: Marc Durdin --- .../worker-thread/src/main/correction/context-tokenization.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/engine/predictive-text/worker-thread/src/main/correction/context-tokenization.ts b/web/src/engine/predictive-text/worker-thread/src/main/correction/context-tokenization.ts index a3af67b1f5..82c78691df 100644 --- a/web/src/engine/predictive-text/worker-thread/src/main/correction/context-tokenization.ts +++ b/web/src/engine/predictive-text/worker-thread/src/main/correction/context-tokenization.ts @@ -165,11 +165,11 @@ export class ContextTokenization { const tokenDistribution = alignedTransformDistribution.map((entry) => { const remap: Map> = new Map(); - for(let pair of entry.sample.entries()) { + for(const pair of entry.sample.entries()) { remap.set(pair[0], { sample: pair[1], p: entry.p - }) + }); } return remap;