Fix CA1851

This commit is contained in:
RoosterDragon
2023-07-13 20:08:36 +01:00
committed by abcdefg30
parent 88f830a9e5
commit 3275875ae5
63 changed files with 349 additions and 267 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
if (folder.OpenPackage(args[1], modData.ModFiles) is not IReadWritePackage package)
throw new FileNotFoundException(args[1]);
IEnumerable<UpdateRule> rules = null;
IReadOnlyCollection<UpdateRule> rules = null;
if (args.Length > 2)
rules = UpdatePath.FromSource(modData.ObjectCreator, args[2]);
@@ -77,9 +77,10 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
var other = UpdatePath.KnownRules(modData.ObjectCreator)
.Where(r => !ruleGroups.Values.Any(g => g.Contains(r)));
.Where(r => !ruleGroups.Values.Any(g => g.Contains(r)))
.ToList();
if (other.Any())
if (other.Count != 0)
{
Console.WriteLine(" Other:");
foreach (var r in other)