Skip to content

Commit da09d4a

Browse files
authored
Fix loss in coverage (#1043)
1 parent d43f83d commit da09d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coverlet.core/Coverage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ private void CalculateCoverage()
401401
continue;
402402
}
403403

404-
foreach (HitCandidate hitCandidateToCompare in result.HitCandidates)
404+
foreach (HitCandidate hitCandidateToCompare in result.HitCandidates.Where(x => x.docIndex.Equals(hitCandidate.docIndex)))
405405
{
406406
if (hitCandidate != hitCandidateToCompare && !hitCandidateToCompare.isBranch)
407407
{

0 commit comments

Comments
 (0)