Remove useless checks and dead code

This commit is contained in:
Bond_009
2025-01-22 17:31:52 +01:00
parent 5612d2187b
commit 47f798827b
10 changed files with 25 additions and 68 deletions

View File

@@ -751,14 +751,7 @@ namespace Emby.Server.Implementations.Library
if (folder.Id.IsEmpty())
{
if (string.IsNullOrEmpty(folder.Path))
{
folder.Id = GetNewItemId(folder.GetType().Name, folder.GetType());
}
else
{
folder.Id = GetNewItemId(folder.Path, folder.GetType());
}
folder.Id = GetNewItemId(folder.Path, folder.GetType());
}
var dbItem = GetItemById(folder.Id) as BasePluginFolder;