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

Commit

Permalink
Merge pull request #270 from sawilde/master
Browse files Browse the repository at this point in the history
do not find fileid of a point if already known
  • Loading branch information
sawilde committed Feb 22, 2015
2 parents 488a8a5 + 4022888 commit d250611
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 d250611

Please sign in to comment.