From 4b5a75eebc9935deb49500fe15c4e4f2920bec0e Mon Sep 17 00:00:00 2001 From: Archi Date: Sun, 29 Jan 2023 23:00:35 +0100 Subject: [PATCH] Satisfy netf, I'm too lazy to add madness support for it now --- .../SignInWithSteamController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm.CustomPlugins.SignInWithSteam/SignInWithSteamController.cs b/ArchiSteamFarm.CustomPlugins.SignInWithSteam/SignInWithSteamController.cs index 113cf4bfe..58ad5db6b 100644 --- a/ArchiSteamFarm.CustomPlugins.SignInWithSteam/SignInWithSteamController.cs +++ b/ArchiSteamFarm.CustomPlugins.SignInWithSteam/SignInWithSteamController.cs @@ -45,7 +45,10 @@ public sealed class SignInWithSteamController : ArchiController { [ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.BadRequest)] [ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.ServiceUnavailable)] public async Task> Post(string botName, [FromBody] SignInWithSteamRequest request) { - ArgumentException.ThrowIfNullOrEmpty(botName); + if (string.IsNullOrEmpty(botName)) { + throw new ArgumentNullException(nameof(botName)); + } + ArgumentNullException.ThrowIfNull(request); Bot? bot = Bot.GetBot(botName);