mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
Update Jellyfin.Api/Controllers/DashboardController.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
fae510308e
commit
4eb94b8fb1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user