Fix IDE0120

This commit is contained in:
RoosterDragon
2023-02-19 12:37:03 +00:00
committed by Pavel Penev
parent ede5412526
commit bf960b6eae
4 changed files with 7 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Traits.Render
public virtual void RulesetLoaded(Ruleset rules, ActorInfo ai)
{
if (rules.Actors[SystemActors.Player].TraitInfos<ProductionIconOverlayManagerInfo>().Where(piom => piom != this && piom.Type == Type).Any())
if (rules.Actors[SystemActors.Player].TraitInfos<ProductionIconOverlayManagerInfo>().Any(piom => piom != this && piom.Type == Type))
throw new YamlException($"Multiple 'ProductionIconOverlayManager's with type '{Type}' exist.");
}