From c844807713d8315e2407c946670672c401bb35f2 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Wed, 29 Apr 2020 20:24:29 +0100 Subject: [PATCH] Http interface cleanup --- CLI/HttpServer/control/Service/LoginBot.cs | 2 +- CLI/HttpServer/control/Service/ShutdownCNC.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLI/HttpServer/control/Service/LoginBot.cs b/CLI/HttpServer/control/Service/LoginBot.cs index 0c51043..f3f74da 100644 --- a/CLI/HttpServer/control/Service/LoginBot.cs +++ b/CLI/HttpServer/control/Service/LoginBot.cs @@ -18,7 +18,7 @@ namespace BetterSecondBot.HttpServer.Control.CNC httpserver.NewBot(); httpserver.GetBot.Setup(httpserver.GetConfig, AssemblyInfo.GetGitHash()); httpserver.GetBot.Start(); - return new string[] { "OK","Starting bot now" }; + return new [] { "OK","Starting bot now" }; } return Failed("Unable to Login the bot (it might already be running)"); } diff --git a/CLI/HttpServer/control/Service/ShutdownCNC.cs b/CLI/HttpServer/control/Service/ShutdownCNC.cs index d0549bf..936c1e5 100644 --- a/CLI/HttpServer/control/Service/ShutdownCNC.cs +++ b/CLI/HttpServer/control/Service/ShutdownCNC.cs @@ -14,7 +14,7 @@ namespace BetterSecondBot.HttpServer.Control.CNC if (httpserver.HTTPCnCmode == true) { httpserver.ShutdownHTTP = true; - return new string[] { "OK", "Shutting down" }; + return new [] { "OK", "Shutting down" }; } return Failed("Not running as CNC"); }