From 29cb8462bcfc6173a65f4377e2510d1c48a2258d Mon Sep 17 00:00:00 2001 From: Enkidu93 Date: Mon, 30 Sep 2024 15:39:42 -0400 Subject: [PATCH] Switch to using 'Where' extension --- .../Serval.Machine.Shared/Services/PreprocessBuildJob.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs b/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs index 00f912fd..4f6b83a6 100644 --- a/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs +++ b/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs @@ -262,7 +262,7 @@ CancellationToken cancellationToken ) ) .Select(sc => - sc.Item2.FilterTextRows(row => + sc.Item2.Where(row => row.Ref is not ScriptureRef sr || ( (sc.Subcorpus.TrainOnChapters ?? new()).TryGetValue(sr.Book, out HashSet? chapters) @@ -288,7 +288,7 @@ row.Ref is not ScriptureRef sr ) ) .Select(sc => - sc.Item2.FilterTextRows(row => + sc.Item2.Where(row => row.Ref is not ScriptureRef sr || ( (sc.Subcorpus.PretranslateChapters ?? new()).TryGetValue( @@ -325,7 +325,7 @@ out HashSet? trainChapters ) ) .Select(tc => - tc.Item2.FilterTextRows(row => + tc.Item2.Where(row => row.Ref is not ScriptureRef sr || ( (tc.Subcorpus.TrainOnChapters ?? new()).TryGetValue(sr.Book, out HashSet? chapters)