diff options
| author | David <daullmer@gmail.com> | 2020-06-21 18:22:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-21 18:22:17 +0200 |
| commit | 4eb94b8fb18ef2fdddfb7a7fe1cde484e6c6ff06 (patch) | |
| tree | 11b309cd5e3aa5d61251d1b26037508eaa23e86b /Jellyfin.Api/Controllers/DashboardController.cs | |
| parent | fae510308e9b3e5022e8d9b67b07f1a5cda026b0 (diff) | |
Update Jellyfin.Api/Controllers/DashboardController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
Diffstat (limited to 'Jellyfin.Api/Controllers/DashboardController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DashboardController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/DashboardController.cs b/Jellyfin.Api/Controllers/DashboardController.cs index 6f162aacc..aab920ff3 100644 --- a/Jellyfin.Api/Controllers/DashboardController.cs +++ b/Jellyfin.Api/Controllers/DashboardController.cs @@ -259,12 +259,12 @@ namespace Jellyfin.Api.Controllers private IEnumerable<Tuple<PluginPageInfo, IPlugin>> GetPluginPages(IPlugin plugin) { - if (!(plugin is IHasWebPages)) + if (!(plugin is IHasWebPages hasWebPages)) { return new List<Tuple<PluginPageInfo, IPlugin>>(); } - return (plugin as IHasWebPages)!.GetPages().Select(i => new Tuple<PluginPageInfo, IPlugin>(i, plugin)); + return hasWebPages.GetPages().Select(i => new Tuple<PluginPageInfo, IPlugin>(i, plugin)); } private IEnumerable<Tuple<PluginPageInfo, IPlugin>> GetPluginPages() |
