From 8342610278adaaf271ce3ea7b48aac30700ecfc0 Mon Sep 17 00:00:00 2001 From: Enkidu93 Date: Fri, 25 Oct 2024 14:13:53 -0400 Subject: [PATCH] Remove unnecessary else if --- src/Serval/src/Serval.Translation/Services/EngineService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Serval/src/Serval.Translation/Services/EngineService.cs b/src/Serval/src/Serval.Translation/Services/EngineService.cs index c5dd60dc..22e5b411 100644 --- a/src/Serval/src/Serval.Translation/Services/EngineService.cs +++ b/src/Serval/src/Serval.Translation/Services/EngineService.cs @@ -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) { @@ -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) {