Skip to content

Commit

Permalink
Remove unnecessary else if
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Oct 25, 2024
1 parent a4dfb6e commit 8342610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Serval/src/Serval.Translation/Services/EngineService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ private V1.ParallelCorpus Map(Corpus source, TrainingCorpus? trainingCorpus, Pre
sourceCorpus.TrainOnAll = true;
targetCorpus.TrainOnAll = true;
}
else if (trainingCorpus is not null)
else
{
if (trainingCorpus.TextIds is not null && trainingCorpus.ScriptureRange is not null)
{
Expand Down Expand Up @@ -670,7 +670,7 @@ pretranslateCorpus is null
sourceCorpus.PretranslateAll = true;
targetCorpus.PretranslateAll = true;
}
else if (pretranslateCorpus is not null)
else
{
if (pretranslateCorpus.TextIds is not null && pretranslateCorpus.ScriptureRange is not null)
{
Expand Down

0 comments on commit 8342610

Please sign in to comment.