Skip to content

Commit c24094c

Browse files
committed
chore: fix code based on review comment
1 parent 8f4bfa3 commit c24094c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/BenchmarkDotNet/Validators/ParamsAllValuesValidator.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public IEnumerable<ValidationError> Validate(ValidationParameters input) =>
2727
.SelectMany(type => type.GetTypeMembersWithGivenAttribute<ParamsAllValuesAttribute>(ReflectionFlags))
2828
.Distinct()
2929
.Select(member => GetErrorOrDefault(member.ParameterType))
30-
.OfType<ValidationError>();
30+
.WhereNotNull();
3131

3232
private bool IsBool(Type paramType) => paramType == typeof(bool);
3333
private bool IsEnum(Type paramType) => paramType.GetTypeInfo().IsEnum;

0 commit comments

Comments
 (0)