Safeguard against empty list

This commit is contained in:
Shadowghost
2026-03-11 15:39:04 +01:00
parent a8a029de73
commit 352b6c91f8

View File

@@ -342,6 +342,11 @@ namespace Emby.Server.Implementations.Library
public void DeleteItemsUnsafeFast(IReadOnlyCollection<BaseItem> items, bool deleteSourceFiles = false)
{
if (items.Count == 0)
{
return;
}
var pathMaps = items.Select(e =>
(Item: e,
InternalPath: GetInternalMetadataPaths(e),