Fix a bug in Emby.Notifications and clean up

This commit is contained in:
Patrick Barron
2020-05-26 23:08:27 -04:00
parent eef7cfd912
commit 31f725fdbf
3 changed files with 15 additions and 27 deletions

View File

@@ -2760,14 +2760,7 @@ namespace MediaBrowser.Controller.Entities
return this;
}
foreach (var parent in GetParents())
{
if (parent.IsTopParent)
{
return parent;
}
}
return null;
return GetParents().FirstOrDefault(parent => parent.IsTopParent);
}
[JsonIgnore]