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 }