Skip to content

Commit 5bcfaa7

Browse files
committed
Do not start printing a table when no columns, details:
When all columns are disabled, it was printing: | | | Replace it with the message, which is in contrast with errors
1 parent 3f4e84f commit 5bcfaa7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/BenchmarkDotNet/Exporters/MarkdownExporter.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ private void PrintTable(SummaryTable table, ILogger logger)
139139
return;
140140
}
141141

142+
if (table.Columns.All(c => !c.NeedToShow))
143+
{
144+
logger.WriteLine("There are no columns to show ");
145+
return;
146+
}
147+
142148
table.PrintCommonColumns(logger);
143149
logger.WriteLine();
144150

0 commit comments

Comments
 (0)