Fix CA1862

This commit is contained in:
RoosterDragon
2024-11-13 19:02:20 +00:00
committed by Pavel Penev
parent ed90322a0b
commit 332ab244a7
5 changed files with 12 additions and 3 deletions

View File

@@ -336,7 +336,9 @@ namespace OpenRA.Mods.Common.UpdateRules
public static bool IsAlreadyExtracted(string key)
{
#pragma warning disable CA1862 // Use the 'StringComparison' method overloads to perform case-insensitive string comparisons
if (key == key.ToLowerInvariant() && key.Any(c => c == '-') && key.All(c => c != ' '))
#pragma warning restore CA1862
{
Console.WriteLine($"Skipping {key} because it is already extracted.");
return true;