mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
More efficient array creation (#11468)
This commit is contained in:
@@ -158,13 +158,13 @@ public class LibraryController : BaseJellyfinApiController
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
IEnumerable<BaseItem> themeItems;
|
||||
IReadOnlyList<BaseItem> themeItems;
|
||||
|
||||
while (true)
|
||||
{
|
||||
themeItems = item.GetThemeSongs();
|
||||
|
||||
if (themeItems.Any() || !inheritFromParent)
|
||||
if (themeItems.Count > 0 || !inheritFromParent)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user