Print table only if there are entries
This commit is contained in:
parent
b6c1a6301f
commit
87d9ca7d06
1 changed files with 6 additions and 1 deletions
|
@ -112,7 +112,12 @@ impl FilePrinter for TablePrinter {
|
||||||
tab.add_row(row);
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue