From 03350ce879039a0f01513a4be31db7c9473db5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Tue, 11 Nov 2025 22:22:06 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm.sln.DotSettings | 1 + ArchiSteamFarm/Core/Utilities.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ArchiSteamFarm.sln.DotSettings b/ArchiSteamFarm.sln.DotSettings index b000d1b2d..6d08e537a 100644 --- a/ArchiSteamFarm.sln.DotSettings +++ b/ArchiSteamFarm.sln.DotSettings @@ -45,6 +45,7 @@ SUGGESTION SUGGESTION SUGGESTION + HINT HINT WARNING WARNING diff --git a/ArchiSteamFarm/Core/Utilities.cs b/ArchiSteamFarm/Core/Utilities.cs index 3eabc7997..c114f10fd 100644 --- a/ArchiSteamFarm/Core/Utilities.cs +++ b/ArchiSteamFarm/Core/Utilities.cs @@ -514,6 +514,7 @@ public static class Utilities { return prefixes.Any(prefix => !string.IsNullOrEmpty(prefix) && (directory.Length > prefix.Length) && DirectorySeparators.Contains(directory[prefix.Length]) && directory.StartsWith(prefix, StringComparison.Ordinal)); } +#pragma warning disable CA1034 // False positive, there's no other way we can declare this block extension(HttpStatusCode statusCode) { [PublicAPI] public bool IsClientErrorCode() => statusCode is >= HttpStatusCode.BadRequest and < HttpStatusCode.InternalServerError; @@ -527,4 +528,5 @@ public static class Utilities { [PublicAPI] public bool IsSuccessCode() => statusCode is >= HttpStatusCode.OK and < HttpStatusCode.Ambiguous; } +#pragma warning restore CA1034 // False positive, there's no other way we can declare this block }