Fixed: Memory leak in Ensure.That

This commit is contained in:
kayone 2013-11-30 15:53:07 -08:00
parent f1f13e6248
commit a7d5b3761b
15 changed files with 93 additions and 91 deletions

View file

@ -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());