Code quality fixes (#952)

Code quality fixes
This commit is contained in:
UselessToucan
2020-09-24 22:58:25 +03:00
committed by GitHub
parent dd2237a3be
commit d7e62fb397
2 changed files with 2 additions and 2 deletions
@@ -40,7 +40,7 @@ namespace Coverlet.Core.Helpers
{
throw new FileNotFoundException("Module test path not found", moduleTestPath);
}
_sourceRootMapping = LoadSourceRootMapping(Path.GetDirectoryName(moduleTestPath)) ?? new Dictionary<string, List<SourceRootMapping>>();
_sourceRootMapping = LoadSourceRootMapping(Path.GetDirectoryName(moduleTestPath));
}
private Dictionary<string, List<SourceRootMapping>> LoadSourceRootMapping(string directory)
@@ -728,7 +728,7 @@ namespace Coverlet.Core.Symbols
Instruction startFilter = exceptionHandler.FilterStart;
Instruction endFilter = startFilter;
while (endFilter.OpCode != OpCodes.Endfilter && endFilter != null)
while (endFilter != null && endFilter.OpCode != OpCodes.Endfilter)
{
endFilter = endFilter.Next;
}