mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-03 23:36:38 +01:00
Safeguard against empty list
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user