Skip to content

Commit a992b57

Browse files
authored
UnresolvedDiagnoser needs to have an Id as well, otherwise CompositeDiagnoser.DisplayResults throws (#2251)
1 parent e715d5b commit a992b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BenchmarkDotNet/Diagnosers/UnresolvedDiagnoser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class UnresolvedDiagnoser : IDiagnoser
1919

2020
public RunMode GetRunMode(BenchmarkCase benchmarkCase) => RunMode.None;
2121

22-
public IEnumerable<string> Ids => Array.Empty<string>();
22+
public IEnumerable<string> Ids => new string[] { nameof(UnresolvedDiagnoser) };
2323
public IEnumerable<IExporter> Exporters => Array.Empty<IExporter>();
2424
public IEnumerable<IAnalyser> Analysers => Array.Empty<IAnalyser>();
2525
public void Handle(HostSignal signal, DiagnoserActionParameters parameters) { }

0 commit comments

Comments
 (0)