diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-05-26 23:08:27 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-05-26 23:08:27 -0400 |
| commit | 31f725fdbf9f4a5d91c60cde4dfe8997022f8257 (patch) | |
| tree | 2d9c4f867cf92aed23de344290c12522f6d6bad4 /MediaBrowser.Controller | |
| parent | eef7cfd91251ee14717dbccfae7505e444048548 (diff) | |
Fix a bug in Emby.Notifications and clean up
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 672d4fd0c..3feef1d32 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -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] |
