Skip to content

Commit

Permalink
change(web): conciser version of last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton committed Sep 8, 2022
1 parent 75e0b27 commit 6c50de9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions common/web/lm-worker/src/correction/context-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ namespace correction {

// Track the Transform that resulted in the whitespace 'token'.
// Will be needed for phrase-level correction/prediction.
if(transformDistribution) {
whitespaceToken.transformDistributions = [transformDistribution];
} else {
whitespaceToken.transformDistributions = [];
}
whitespaceToken.transformDistributions = transformDistribution ? [transformDistribution] : [];

whitespaceToken.raw = null;
this.tokens.push(whitespaceToken);
Expand Down

0 comments on commit 6c50de9

Please sign in to comment.