Use collection expression

This commit is contained in:
Patrick Barron 2024-01-17 12:10:42 -05:00
parent 502cbe77b2
commit 5d3acd43e9

View File

@ -233,7 +233,7 @@ public class GuideManager : IGuideManager
var existingPrograms = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = [BaseItemKind.LiveTvProgram],
ChannelIds = new[] { currentChannel.Id },
ChannelIds = [currentChannel.Id],
DtoOptions = new DtoOptions(true)
}).Cast<LiveTvProgram>().ToDictionary(i => i.Id);