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.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
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 (!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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user