Skip to content

Commit

Permalink
Switch to using 'Where' extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Sep 30, 2024
1 parent f7e5925 commit 29cb846
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>? chapters)
Expand All @@ -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(
Expand Down Expand Up @@ -325,7 +325,7 @@ out HashSet<int>? 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<int>? chapters)
Expand Down

0 comments on commit 29cb846

Please sign in to comment.