From 6a7cb21b7e4223a78857772e56539f1e344600f5 Mon Sep 17 00:00:00 2001 From: dkanada Date: Wed, 3 Jun 2020 15:24:17 +0900 Subject: [PATCH] apply code suggestions Co-authored-by: Vasily Co-authored-by: Cody Robibero --- .../Updates/InstallationManager.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index 9a49ac86c4..01118789bc 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -204,12 +204,11 @@ namespace Emby.Server.Implementations.Updates if (minVersion != null) { - availableVersions = availableVersions - .Where(x => new Version(x.version) >= minVersion) - .OrderByDescending(x => x.version); + availableVersions = availableVersions.Where(x => new Version(x.version) >= minVersion); } - foreach (var v in availableVersions) + foreach (var v in availableVersions.OrderByDescending(x => x.version)) +) { yield return new InstallationInfo { @@ -331,13 +330,13 @@ namespace Emby.Server.Implementations.Updates // Do plugin-specific processing if (plugin == null) { - _logger.LogInformation("New plugin installed: {0} {1} {2}", package.Name, package.Version); + _logger.LogInformation("New plugin installed: {0} {1}", package.Name, package.Version); PluginInstalled?.Invoke(this, package); } else { - _logger.LogInformation("Plugin updated: {0} {1} {2}", package.Name, package.Version); + _logger.LogInformation("Plugin updated: {0} {1}", package.Name, package.Version); PluginUpdated?.Invoke(this, package); }