Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Nov 14, 2024
1 parent d97ea1c commit 37dde83
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/SIL.Machine/Corpora/NParallelTextCorpus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,7 @@ private IEnumerable<NParallelTextRow> CreateRows(
if (rows.All(r => r == null))
throw new ArgumentNullException("A corpus row must be specified.");

object[] defaultRefs = new object[] { };
if (rows.Any(r => r != null))
defaultRefs = new object[] { rows.Where(r => r != null).Select(r => r.Ref).First() };
object[] defaultRefs = new object[] { rows.Where(r => r != null).Select(r => r.Ref).First() };
string textId = null;
object[][] refs = new object[N][];
TextRowFlags[] flags = new TextRowFlags[N];
Expand Down

0 comments on commit 37dde83

Please sign in to comment.