.Any(), .Count() -> .Count or .Length
This commit is contained in:
committed by
atlimit8
parent
6eb4fe8980
commit
79f321cb44
@@ -70,7 +70,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
Console.WriteLine(" Individual Rules:");
|
||||
foreach (var kv in ruleGroups)
|
||||
{
|
||||
if (!kv.Value.Any())
|
||||
if (kv.Value.Count == 0)
|
||||
continue;
|
||||
|
||||
Console.WriteLine(" " + kv.Key + ":");
|
||||
@@ -130,7 +130,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
mapFiles.Save();
|
||||
Console.WriteLine("COMPLETE");
|
||||
|
||||
if (manualSteps.Any())
|
||||
if (manualSteps.Count > 0)
|
||||
{
|
||||
Console.WriteLine(" Manual changes are required to complete this update:");
|
||||
foreach (var manualStep in manualSteps)
|
||||
@@ -140,7 +140,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
Console.WriteLine();
|
||||
}
|
||||
|
||||
if (externalFilenames.Any())
|
||||
if (externalFilenames.Count > 0)
|
||||
{
|
||||
Console.WriteLine("The following shared yaml files referenced by the map have been ignored:");
|
||||
Console.WriteLine(UpdateUtils.FormatMessageList(externalFilenames));
|
||||
|
||||
Reference in New Issue
Block a user