Skip to content

Commit

Permalink
Restore accidentally-removed coverlet-coverage#220.
Browse files Browse the repository at this point in the history
  • Loading branch information
jherby2k committed Nov 4, 2018
1 parent 7db611b commit f16f28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coverlet.core/Coverage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public CoverageResult GetCoverageResult()
var coverageResult = new CoverageResult { Identifier = _identifier, Modules = new Modules() };
coverageResult.Merge(modules);

if (!string.IsNullOrEmpty(_mergeWith) && !string.IsNullOrWhiteSpace(_mergeWith))
if (!string.IsNullOrEmpty(_mergeWith) && !string.IsNullOrWhiteSpace(_mergeWith) && File.Exists(_mergeWith))
{
string json = File.ReadAllText(_mergeWith);
coverageResult.Merge(JsonConvert.DeserializeObject<Modules>(json));
Expand Down

0 comments on commit f16f28f

Please sign in to comment.