Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
do not find fileid of a point if already known
Browse files Browse the repository at this point in the history
  • Loading branch information
sawilde committed Feb 22, 2015
1 parent b595688 commit 4022888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/OpenCover.Framework/Persistance/BasePersistance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ from method in @class.Methods.Where(x => !x.ShouldSerializeSkippedDueTo())

private static void MapFileReferences(IEnumerable<IDocumentReference> points, IDictionary<string, uint> filesDictionary)
{
foreach (var pt in points)
foreach (var pt in points.Where(p => p.FileId == 0))
{
uint fileid;
filesDictionary.TryGetValue(pt.Document ?? "", out fileid);
Expand Down

0 comments on commit 4022888

Please sign in to comment.