浏览代码

Use collection expression

Patrick Barron 1 年之前
父节点
当前提交
5d3acd43e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);