Sfoglia il codice sorgente

Use collection expression

Patrick Barron 1 anno fa
parent
commit
5d3acd43e9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Jellyfin.LiveTv/Guide/GuideManager.cs

+ 1 - 1
src/Jellyfin.LiveTv/Guide/GuideManager.cs

@@ -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);