File tree 1 file changed +4
-5
lines changed
src/BenchmarkDotNet/Validators
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,12 @@ protected override void ExecuteBenchmarks(IEnumerable<BenchmarkExecutor> executo
27
27
28
28
foreach ( var executor in parameterGroup . DistinctBy ( e => e . BenchmarkCase . Descriptor . WorkloadMethod ) )
29
29
{
30
- if ( executor . BenchmarkCase . Descriptor . WorkloadMethod . ReturnType == typeof ( void ) )
31
- return ;
32
-
33
30
try
34
31
{
35
32
var result = executor . Invoke ( ) ;
36
- results . Add ( ( executor . BenchmarkCase , result ) ) ;
33
+
34
+ if ( executor . BenchmarkCase . Descriptor . WorkloadMethod . ReturnType != typeof ( void ) )
35
+ results . Add ( ( executor . BenchmarkCase , result ) ) ;
37
36
}
38
37
catch ( Exception ex )
39
38
{
@@ -159,4 +158,4 @@ static Array ToStructuralEquatable(object obj)
159
158
public int GetHashCode ( object obj ) => StructuralComparisons . StructuralEqualityComparer . GetHashCode ( obj ) ;
160
159
}
161
160
}
162
- }
161
+ }
You can’t perform that action at this time.
0 commit comments