Fixed some petapoco issue with insert.

This commit is contained in:
kay.one 2011-07-02 16:45:29 -07:00
commit 861026f743
6 changed files with 4 additions and 70 deletions

View file

@ -42,13 +42,6 @@ namespace NzbDrone.Core.Providers
_database.Delete<RootDir>(rootDirId);
}
public virtual void Update(RootDir rootDir)
{
ValidatePath(rootDir);
_database.Update(rootDir);
}
private static void ValidatePath(RootDir rootDir)
{
if (String.IsNullOrWhiteSpace(rootDir.Path) || !Path.IsPathRooted(rootDir.Path))