diff options
| author | Neil Burrows <neil.burrows@nvable.com> | 2019-12-13 11:08:19 +0000 |
|---|---|---|
| committer | Neil Burrows <neil.burrows@nvable.com> | 2019-12-13 11:08:19 +0000 |
| commit | 12bb4a92eb69a0dfe06add8f4aebf5da749c6126 (patch) | |
| tree | ee640d0a2bb28a1ce84206d53fb5ee3bad5e1f2c | |
| parent | 554c967dd6a0e7e75e737912e869b7269cd72081 (diff) | |
Tidying up code
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteItemRepository.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs index 3f96b43b3..2a74a826b 100644 --- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs @@ -4594,17 +4594,10 @@ namespace Emby.Server.Implementations.Data if (query.ExcludeInheritedTags.Length > 0) { var paramName = "@ExcludeInheritedTags"; - if (statement == null) { - List<string> tagParamList = new List<string>(); - - for (int index = 0; index < query.ExcludeInheritedTags.Length; index++) - { - tagParamList.Add(paramName + index); - } - - whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in (" + string.Join(",", tagParamList) + ")) is null)"); + int index = 0; + whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in (" + string.Join(",", query.ExcludeInheritedTags.Select(t => paramName + index++)) + ")) is null)"); } else { |
