[Gardening] ReportFormatter: tying up loose ends

This commit is contained in:
Pavol Vaskovic
2019-05-24 00:18:44 +02:00
parent b3f7996ea7
commit 007d398f4a
2 changed files with 3 additions and 5 deletions

View File

@@ -648,10 +648,8 @@ class ReportFormatter(object):
def table(title, results, is_strong=False, is_open=False):
if not results:
return ''
rows = [
row(format_columns(ReportFormatter.values(r), is_strong))
for r in results
]
rows = [row(format_columns(ReportFormatter.values(r), is_strong))
for r in results]
table = (header(title if self.single_table else '',
ReportFormatter.header_for(results[0])) +
''.join(rows))