mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-01 03:30:06 +00:00
Safeguard against empty list
This commit is contained in:
parent
a8a029de73
commit
352b6c91f8
1 changed files with 5 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue