mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 04:51:45 +02:00
NCrunch works for unit tests
This commit is contained in:
@@ -64,7 +64,6 @@ namespace NzbDrone.Common
|
||||
if (!string.IsNullOrWhiteSpace(applicationPath))
|
||||
return applicationPath;
|
||||
|
||||
|
||||
applicationPath = CrawlToRoot(Environment.CurrentDirectory);
|
||||
if (!string.IsNullOrWhiteSpace(applicationPath))
|
||||
return applicationPath;
|
||||
@@ -83,6 +82,9 @@ namespace NzbDrone.Common
|
||||
|
||||
public string CrawlToRoot(string dir)
|
||||
{
|
||||
if (String.IsNullOrWhiteSpace(dir))
|
||||
return null;
|
||||
|
||||
var directoryInfo = new DirectoryInfo(dir);
|
||||
|
||||
while (!IsRoot(directoryInfo))
|
||||
|
Reference in New Issue
Block a user