Skip to content

Commit

Permalink
Change SMT default behavior as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Dec 4, 2023
1 parent 5e777b6 commit 9d4e159
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/SIL.Machine.AspNetCore/Services/SmtTransferBuildJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ CancellationToken cancellationToken
IDictionary<CorpusType, ITextCorpus> tcs = _corpusService.CreateTextCorpus(corpus.TargetFiles);

if (
buildOptionsObject is not null
&& buildOptionsObject["use_key_terms"] is not null
&& (bool)buildOptionsObject["use_key_terms"]!
(
buildOptionsObject is null
|| buildOptionsObject["use_key_terms"] is null
|| (bool)buildOptionsObject["use_key_terms"]!
)
&& scs[CorpusType.Term] is not null
&& tcs[CorpusType.Term] is not null
)
Expand Down

0 comments on commit 9d4e159

Please sign in to comment.