Skip to content

Commit 4f1e0ac

Browse files
authored
Merge pull request #163 from tonyhallett/isnullorempty-string-options
string options should not be checked against null
2 parents 258c484 + f028b85 commit 4f1e0ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FineCodeCoverage/Core/Coverlet/DataCollector/CoverletDataCollectorUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private string GetSettings()
169169

170170
private string GetTestAdapterPathArg()
171171
{
172-
if (coverageProject.Settings.CoverletCollectorDirectoryPath != null) {
172+
if (!String.IsNullOrWhiteSpace(coverageProject.Settings.CoverletCollectorDirectoryPath)) {
173173
var directoryPath = coverageProject.Settings.CoverletCollectorDirectoryPath.Trim();
174174
if (Directory.Exists(directoryPath))
175175
{

FineCodeCoverage/Core/OpenCover/OpenCoverUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void Initialize(string appDataFolder)
4747

4848
private string GetOpenCoverExePath(string customExePath)
4949
{
50-
if(customExePath != null)
50+
if(!String.IsNullOrWhiteSpace(customExePath))
5151
{
5252
return customExePath;
5353
}

0 commit comments

Comments
 (0)