Skip to content

Commit

Permalink
don't emit a Failure if there are no parts remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Jul 25, 2023
1 parent ee29ed4 commit 0e8d97f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions IsIdentifiable/Reporting/Reports/FailureStoreReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,14 @@ public static IEnumerable<Failure> Deserialize(IFileInfo oldFile, Action<int> lo
parts = parts.Except(toRemove);
/* TEMP */

yield return new Failure(parts)
{
Resource = r["Resource"],
ResourcePrimaryKey = r["ResourcePrimaryKey"],
ProblemField = problemField,
ProblemValue = r["ProblemValue"],
};
if (parts.Any())
yield return new Failure(parts)
{
Resource = r["Resource"],
ResourcePrimaryKey = r["ResourcePrimaryKey"],
ProblemField = problemField,
ProblemValue = r["ProblemValue"],
};

if (lineNumber % 1000 == 0)
loadedRows(lineNumber);
Expand Down

0 comments on commit 0e8d97f

Please sign in to comment.