From 6b717b9444fbbbda459dd6f093b5c0b041515a10 Mon Sep 17 00:00:00 2001 From: John Lambert Date: Fri, 21 Feb 2025 12:58:32 -0500 Subject: [PATCH] Format file --- .../Services/PretranslationService.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Serval/src/Serval.Translation/Services/PretranslationService.cs b/src/Serval/src/Serval.Translation/Services/PretranslationService.cs index b6acdfa8..e3c4fdfd 100644 --- a/src/Serval/src/Serval.Translation/Services/PretranslationService.cs +++ b/src/Serval/src/Serval.Translation/Services/PretranslationService.cs @@ -100,7 +100,7 @@ await GetAllAsync(engineId, modelRevision, corpusId, textId, cancellationToken) textId, pretranslations.ToList(), fullName: targetSettings.FullName, - textBehavior: UpdateUsfmTextBehavior.PreferExisting + textBehavior: UpdateUsfmTextBehavior.PreferExisting ) ?? ""; break; case PretranslationUsfmTextOrigin.PreferPretranslated: @@ -109,7 +109,7 @@ await GetAllAsync(engineId, modelRevision, corpusId, textId, cancellationToken) textId, pretranslations.ToList(), fullName: targetSettings.FullName, - textBehavior: UpdateUsfmTextBehavior.PreferNew + textBehavior: UpdateUsfmTextBehavior.PreferNew ) ?? ""; break; case PretranslationUsfmTextOrigin.OnlyExisting: @@ -127,7 +127,7 @@ await GetAllAsync(engineId, modelRevision, corpusId, textId, cancellationToken) textId, pretranslations.ToList(), fullName: targetSettings.FullName, - textBehavior: UpdateUsfmTextBehavior.StripExisting + textBehavior: UpdateUsfmTextBehavior.StripExisting ) ?? ""; break; } @@ -151,14 +151,14 @@ await GetAllAsync(engineId, modelRevision, corpusId, textId, cancellationToken) textId, pretranslations.ToList(), fullName: targetSettings.FullName, - textBehavior: UpdateUsfmTextBehavior.StripExisting + textBehavior: UpdateUsfmTextBehavior.StripExisting ) ?? ""; case PretranslationUsfmTextOrigin.OnlyExisting: return updater.UpdateUsfm( textId, [], // don't pass the pretranslations, we only want the existing text. fullName: targetSettings.FullName, - textBehavior: UpdateUsfmTextBehavior.StripExisting + textBehavior: UpdateUsfmTextBehavior.StripExisting ) ?? ""; } }