DefaultSpriteSequence: Use .Count == 0 over !.Any()

This commit is contained in:
abcdefg30
2023-05-16 19:22:05 +02:00
committed by Gustas
parent aa28881726
commit 991e0a4c9a

View File

@@ -512,7 +512,7 @@ namespace OpenRA.Mods.Common.Graphics
length = 2 * length - 2; length = 2 * length - 2;
} }
if (!index.Any()) if (index.Count == 0)
throw new YamlException($"Sequence {image}.{Name} does not define any frames."); throw new YamlException($"Sequence {image}.{Name} does not define any frames.");
var minIndex = index.Min(); var minIndex = index.Min();