diff options
| author | Bond_009 <bond.009@outlook.com> | 2025-01-22 17:31:52 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2025-01-22 17:31:52 +0100 |
| commit | 47f798827b956dbacfed2a870bab02e7ffc0da12 (patch) | |
| tree | 1cdb26a0935d994ff2b249119ca4a400d006aa4f /Emby.Server.Implementations/Library/LibraryManager.cs | |
| parent | 5612d2187b8b6d40c4767454a06c8662f02ad6fd (diff) | |
Remove useless checks and dead code
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/LibraryManager.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index 2d1af82b3..4a6f1716d 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -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; |
