Fix IDE0074

This commit is contained in:
RoosterDragon
2023-04-05 19:20:51 +01:00
committed by Pavel Penev
parent cbd0583289
commit bd2b3d9793
30 changed files with 42 additions and 81 deletions

View File

@@ -71,8 +71,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
continue;
var prefix = match.Groups["prefix"].Value;
if (framePrefix == null)
framePrefix = prefix;
framePrefix ??= prefix;
if (prefix != framePrefix)
throw new InvalidDataException($"Frame prefix mismatch: `{prefix}` != `{framePrefix}`");