mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Memory leak in Ensure.That
This commit is contained in:
@@ -12,7 +12,7 @@ namespace NzbDrone.Common.Test.EnsureTest
|
||||
public void EnsureWindowsPath(string path)
|
||||
{
|
||||
WindowsOnly();
|
||||
Ensure.That(() => path).IsValidPath();
|
||||
Ensure.That(path, () => path).IsValidPath();
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace NzbDrone.Common.Test.EnsureTest
|
||||
public void EnsureLinuxPath(string path)
|
||||
{
|
||||
LinuxOnly();
|
||||
Ensure.That(() => path).IsValidPath();
|
||||
Ensure.That(path, () => path).IsValidPath();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user