From 9258819c8470cca5d1c0ddb0e7f7d8f388f415b6 Mon Sep 17 00:00:00 2001 From: Archi Date: Mon, 12 Feb 2024 15:24:41 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Core/ASF.cs | 2 +- ArchiSteamFarm/IPC/Requests/CommandRequest.cs | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/ArchiSteamFarm/Core/ASF.cs b/ArchiSteamFarm/Core/ASF.cs index 4ed6fd37d..ff521a532 100644 --- a/ArchiSteamFarm/Core/ASF.cs +++ b/ArchiSteamFarm/Core/ASF.cs @@ -116,7 +116,7 @@ public static class ASF { await UpdateAndRestart().ConfigureAwait(false); if (!Program.IgnoreUnsupportedEnvironment && !await ProtectAgainstCrashes().ConfigureAwait(false)) { - ArchiLogger.LogGenericError(Strings.ErrorTooManyCrashes); + ArchiLogger.LogFatalError(Strings.ErrorTooManyCrashes); return true; } diff --git a/ArchiSteamFarm/IPC/Requests/CommandRequest.cs b/ArchiSteamFarm/IPC/Requests/CommandRequest.cs index 0dbf6cd7b..d0d3af287 100644 --- a/ArchiSteamFarm/IPC/Requests/CommandRequest.cs +++ b/ArchiSteamFarm/IPC/Requests/CommandRequest.cs @@ -19,7 +19,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; using System.ComponentModel.DataAnnotations; using System.Diagnostics.CodeAnalysis; using Newtonsoft.Json; @@ -35,12 +34,6 @@ public sealed class CommandRequest { [Required] public string Command { get; private set; } = ""; - internal CommandRequest(string command) { - ArgumentException.ThrowIfNullOrEmpty(command); - - Command = command; - } - [JsonConstructor] private CommandRequest() { } }