aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Updates/InstallationManager.cs
diff options
context:
space:
mode:
authorGreenback <jimcartlidge@yahoo.co.uk>2020-12-15 20:27:42 +0000
committerGreenback <jimcartlidge@yahoo.co.uk>2020-12-15 20:27:42 +0000
commit532388754053957a1b3066900b7b54e1894206f3 (patch)
tree6ddc017eeb71c09fa5c43dc79c99ef1fb7c1c78a /Emby.Server.Implementations/Updates/InstallationManager.cs
parent0337e39bae80ba78d19821373603f19bd6a5a95f (diff)
Replaced TryGetPlugin with GetPlugin
Diffstat (limited to 'Emby.Server.Implementations/Updates/InstallationManager.cs')
-rw-r--r--Emby.Server.Implementations/Updates/InstallationManager.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs
index fc80bdd75..7cab77c85 100644
--- a/Emby.Server.Implementations/Updates/InstallationManager.cs
+++ b/Emby.Server.Implementations/Updates/InstallationManager.cs
@@ -197,10 +197,11 @@ namespace Emby.Server.Implementations.Updates
{
var version = package.Versions[i];
+ var plugin = _pluginManager.GetPlugin(packageGuid, version.VersionNumber);
// Update the manifests, if anything changes.
- if (_pluginManager.TryGetPlugin(packageGuid, version.VersionNumber, out LocalPlugin? plugin))
+ if (plugin != null)
{
- bool noChange = string.Equals(plugin!.Manifest.MaxAbi, version.MaxAbi, StringComparison.Ordinal)
+ bool noChange = string.Equals(plugin.Manifest.MaxAbi, version.MaxAbi, StringComparison.Ordinal)
|| string.Equals(plugin.Manifest.TargetAbi, version.TargetAbi, StringComparison.Ordinal);
if (!noChange)
{