Fix crlfs in CheckUnknown*Fields lint tests.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.GameRules;
|
||||
|
||||
@@ -33,8 +33,8 @@ namespace OpenRA.Mods.Common.Lint
|
||||
foreach (var weapon in weapons)
|
||||
{
|
||||
foreach (var field in weapon.Value.Nodes)
|
||||
{
|
||||
// Removals can never define children
|
||||
{
|
||||
// Removals can never define children
|
||||
if (field.Key.StartsWith("-", StringComparison.Ordinal) && field.Value.Nodes.Any())
|
||||
{
|
||||
emitError("{0} has child nodes, which is not valid for removals.".F(field.Key));
|
||||
|
||||
Reference in New Issue
Block a user