From cc28d7520e55059e8c913e0b9cbf53fbc06ade67 Mon Sep 17 00:00:00 2001 From: Archi Date: Thu, 25 Jan 2024 23:34:58 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/IPC/Controllers/Api/PluginsController.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ArchiSteamFarm/IPC/Controllers/Api/PluginsController.cs b/ArchiSteamFarm/IPC/Controllers/Api/PluginsController.cs index 2e5e3c96a..780894934 100644 --- a/ArchiSteamFarm/IPC/Controllers/Api/PluginsController.cs +++ b/ArchiSteamFarm/IPC/Controllers/Api/PluginsController.cs @@ -19,7 +19,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using System.Collections.Generic; using System.Net; using ArchiSteamFarm.IPC.Responses; @@ -33,9 +32,5 @@ namespace ArchiSteamFarm.IPC.Controllers.Api; public sealed class PluginsController : ArchiController { [HttpGet] [ProducesResponseType>>((int) HttpStatusCode.OK)] - public ActionResult>> PluginsGet() { - IReadOnlyCollection activePlugins = PluginsCore.ActivePlugins ?? (IReadOnlyCollection) Array.Empty(); - - return Ok(new GenericResponse>(activePlugins)); - } + public ActionResult>> PluginsGet() => Ok(new GenericResponse>(PluginsCore.ActivePlugins)); }