mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Help doesn't need Linq
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace SabreTools.Help
|
namespace SabreTools.Help
|
||||||
{
|
{
|
||||||
@@ -493,7 +492,10 @@ namespace SabreTools.Help
|
|||||||
|
|
||||||
// If we haven't found a valid flag and we're not looking for just this feature, check to see if any of the subfeatures are valid
|
// If we haven't found a valid flag and we're not looking for just this feature, check to see if any of the subfeatures are valid
|
||||||
if (!valid && !exact)
|
if (!valid && !exact)
|
||||||
valid = Features.Keys.Any(k => Features[k]!.ValidateInput(input));
|
{
|
||||||
|
string[] featureKeys = [.. Features.Keys];
|
||||||
|
valid = Array.Exists(featureKeys, k => Features[k]!.ValidateInput(input));
|
||||||
|
}
|
||||||
|
|
||||||
return valid;
|
return valid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Net30.LinqBridge" Version="1.3.0" Condition="$(TargetFramework.StartsWith(`net2`))" />
|
|
||||||
<PackageReference Include="SabreTools.IO" Version="1.6.2" />
|
<PackageReference Include="SabreTools.IO" Version="1.6.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user