mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 16:13:58 -07:00
Fixed: Memory leak in Ensure.That
This commit is contained in:
parent
f1f13e6248
commit
a7d5b3761b
15 changed files with 93 additions and 91 deletions
|
@ -23,8 +23,8 @@ namespace NzbDrone.Common
|
|||
|
||||
public static string CleanFilePath(this string path)
|
||||
{
|
||||
Ensure.That(() => path).IsNotNullOrWhiteSpace();
|
||||
Ensure.That(() => path).IsValidPath();
|
||||
Ensure.That(path, () => path).IsNotNullOrWhiteSpace();
|
||||
Ensure.That(path, () => path).IsValidPath();
|
||||
|
||||
var info = new FileInfo(path.Trim());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue