Skip to content

Commit c5ac2f5

Browse files
Fix bug in BaselineCustomAnalyzer
We shouldn't report warning for an empty set of columns
1 parent bc7cb8a commit c5ac2f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/BenchmarkDotNet/Analysers/BaselineCustomAnalyzer.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using BenchmarkDotNet.Running;
44
using System.Collections.Generic;
55
using System.Linq;
6+
using BenchmarkDotNet.Extensions;
67

78
namespace BenchmarkDotNet.Analysers
89
{
@@ -18,7 +19,9 @@ protected override IEnumerable<Conclusion> AnalyseSummary(Summary summary)
1819
.Select(t => t.ColumnName)
1920
.Distinct()
2021
.ToArray();
21-
22+
if (columns.IsEmpty())
23+
yield break;
24+
2225
var columnNames = string.Join(", ", columns);
2326

2427
foreach (var benchmarkCase in summary.BenchmarksCases)

0 commit comments

Comments
 (0)