Fix CA1310, CA1311
This commit is contained in:
committed by
Matthias Mailänder
parent
d83e579dfe
commit
285443f10f
@@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.Lint
|
||||
var bi = actorInfo.Value.TraitInfoOrDefault<BuildableInfo>();
|
||||
if (bi != null)
|
||||
foreach (var prereq in bi.Prerequisites)
|
||||
if (!prereq.StartsWith("~disabled") && !providedPrereqs.Contains(prereq.Replace("!", "").Replace("~", "")))
|
||||
if (!prereq.StartsWith("~disabled", StringComparison.Ordinal) && !providedPrereqs.Contains(prereq.Replace("!", "").Replace("~", "")))
|
||||
emitError($"Buildable actor `{actorInfo.Key}` has prereq `{prereq}` not provided by anything.");
|
||||
}
|
||||
catch (InvalidOperationException e)
|
||||
|
||||
Reference in New Issue
Block a user