aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2020-12-18 21:56:54 +0000
committerGitHub <noreply@github.com>2020-12-18 21:56:54 +0000
commita293024efd5ebf8d04b53de0999da78a64a857e5 (patch)
treea1e1c14813ca1596ad39c3e767c0479ea1b630e7
parent5c3ebb63e62948ce9d405f7cbb82d4579e568833 (diff)
Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
-rw-r--r--Emby.Server.Implementations/Plugins/PluginManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs
index be08d8515..1fd87273f 100644
--- a/Emby.Server.Implementations/Plugins/PluginManager.cs
+++ b/Emby.Server.Implementations/Plugins/PluginManager.cs
@@ -280,7 +280,7 @@ namespace Emby.Server.Implementations.Plugins
throw new ArgumentNullException(nameof(assembly));
}
- var plugin = _plugins.Where(p => p.DllFiles.Contains(assembly.Location)).FirstOrDefault();
+ var plugin = _plugins.FirstOrDefault(p => p.DllFiles.Contains(assembly.Location));
if (plugin == null)
{
// A plugin's assembly didn't cause this issue, so ignore it.