Fix crlfs in CheckUnknown*Fields lint tests.

This commit is contained in:
Paul Chote
2018-06-30 23:23:55 +01:00
committed by abcdefg30
parent ca5af0755d
commit 707514572b
2 changed files with 11 additions and 11 deletions

View File

@@ -10,7 +10,7 @@
#endregion
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using OpenRA.Mods.Common.Traits;
using OpenRA.Traits;
@@ -41,13 +41,13 @@ namespace OpenRA.Mods.Common.Lint
continue;
}
var traitName = NormalizeName(t.Key);
var traitInfo = modData.ObjectCreator.FindType(traitName + "Info");
foreach (var field in t.Value.Nodes)
{
var fieldName = NormalizeName(field.Key);
if (traitInfo.GetField(fieldName) == null)
emitError("{0} refers to a trait field `{1}` that does not exist on `{2}`.".F(field.Location, fieldName, traitName));
var traitName = NormalizeName(t.Key);
var traitInfo = modData.ObjectCreator.FindType(traitName + "Info");
foreach (var field in t.Value.Nodes)
{
var fieldName = NormalizeName(field.Key);
if (traitInfo.GetField(fieldName) == null)
emitError("{0} refers to a trait field `{1}` that does not exist on `{2}`.".F(field.Location, fieldName, traitName));
}
}
}