Print table only if there are entries

This commit is contained in:
Matthias Beyer 2015-12-04 13:56:46 +01:00
parent b6c1a6301f
commit 87d9ca7d06

View file

@ -112,7 +112,12 @@ impl FilePrinter for TablePrinter {
tab.add_row(row);
}
tab.printstd();
if i != 0 {
debug!("Printing {} table entries", i);
tab.printstd();
} else {
debug!("Not printing table because there are zero entries");
}
}
}