aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs16
1 files changed, 3 insertions, 13 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs
index 7b279fa69..0c698bb94 100644
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@ -1588,26 +1588,16 @@ namespace MediaBrowser.Controller.Entities
public List<string> GetInheritedTags()
{
var list = new List<string>();
- if (Tags is not null)
- {
- list.AddRange(Tags);
- }
+ list.AddRange(Tags);
foreach (var parent in GetParents())
{
- if (parent.Tags is not null)
- {
- list.AddRange(parent.Tags);
- }
+ list.AddRange(parent.Tags);
}
foreach (var folder in LibraryManager.GetCollectionFolders(this))
{
- if (folder.Tags is not null)
- {
- list.AddRange(folder.Tags);
- }
-
+ list.AddRange(folder.Tags);
}
return list.Distinct(StringComparer.OrdinalIgnoreCase).ToList();