private string? TryGetToolPath()

in TeamCity.dotCover/DotCoverToolProcess.cs [40:53]


    private string? TryGetToolPath(string? path)
    {
        if (path == default)
        {
            return default;
        }

        if (!_fileSystem.FileExists(path))
        {
            throw new ToolException($"\"{path}\" was not found.");
        }

        return path;
    }