Skip to content

Commit

Permalink
Replaced .Any() method call from check
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Fung committed Jul 16, 2024
1 parent d19df12 commit 9f34942
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ internal static AlgorithmValidationResult ValidateAlgorithm(
new StackFrame(true)));
}

if (validationParameters.ValidAlgorithms != null && validationParameters.ValidAlgorithms.Any() && !validationParameters.ValidAlgorithms.Contains(algorithm, StringComparer.Ordinal))
if (validationParameters.ValidAlgorithms != null && validationParameters.ValidAlgorithms.Count > 0 && !validationParameters.ValidAlgorithms.Contains(algorithm, StringComparer.Ordinal))
{
return new AlgorithmValidationResult(
algorithm,
Expand Down

0 comments on commit 9f34942

Please sign in to comment.