mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Fixed some petapoco issue with insert.
This commit is contained in:
parent
5a4e8330b2
commit
861026f743
6 changed files with 4 additions and 70 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue