aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/PluginService.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-04-13 14:38:19 +0900
committerdkanada <dkanada@users.noreply.github.com>2020-04-13 14:38:19 +0900
commitcb2523e2efb3c91862e035c1ce969e6d069775cd (patch)
treecc74c5ac997fe67ed2f4dcd0f9fcb789212122e9 /MediaBrowser.Api/PluginService.cs
parentff065df9863f30a4eec52a95d260cdadcced7b1e (diff)
parent9a0a4575adbba04b6b7f3294e70175a98b864a90 (diff)
merge branch master into plugin
Diffstat (limited to 'MediaBrowser.Api/PluginService.cs')
-rw-r--r--MediaBrowser.Api/PluginService.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/MediaBrowser.Api/PluginService.cs b/MediaBrowser.Api/PluginService.cs
index 16d3268b9..7f74511ee 100644
--- a/MediaBrowser.Api/PluginService.cs
+++ b/MediaBrowser.Api/PluginService.cs
@@ -243,9 +243,7 @@ namespace MediaBrowser.Api
// https://code.google.com/p/servicestack/source/browse/trunk/Common/ServiceStack.Text/ServiceStack.Text/Controller/PathInfo.cs
var id = Guid.Parse(GetPathValue(1));
- var plugin = _appHost.Plugins.First(p => p.Id == id) as IHasPluginConfiguration;
-
- if (plugin == null)
+ if (!(_appHost.Plugins.First(p => p.Id == id) is IHasPluginConfiguration plugin))
{
throw new FileNotFoundException();
}