瀏覽代碼

Reformatting code

Neil Burrows 5 年之前
父節點
當前提交
d9c0721e3d
共有 1 個文件被更改,包括 3 次插入7 次删除
  1. 3 7
      Emby.Server.Implementations/Data/SqliteItemRepository.cs

+ 3 - 7
Emby.Server.Implementations/Data/SqliteItemRepository.cs

@@ -4596,13 +4596,9 @@ namespace Emby.Server.Implementations.Data
                 var paramName = "@ExcludeInheritedTags";
                 var paramName = "@ExcludeInheritedTags";
                 if (statement == null)
                 if (statement == null)
                 {
                 {
-                    List<string> paramList = new List<string>();
-                    for (int index = 0; index < query.ExcludeInheritedTags.Length; index++)
-                    {
-                        paramList.Add(paramName + index);
-                    }
-
-                    whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in (" + string.Join(",", paramList) + ")) is null)");
+                    int index = 0;
+                    string excludedTags = string.Join(",", query.ExcludeInheritedTags.Select(t => paramName + index++));
+                    whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in (" + excludedTags + ")) is null)");
                 }
                 }
                 else
                 else
                 {
                 {