inhibit: drop redundant table_set_header() caller
The immediately following table_print_with_pager() call already processes arg_legend, no need to do this manually first.
This commit is contained in:
committed by
Mike Yuan
parent
5f815d6fa1
commit
0c9de6daee
@@ -153,8 +153,6 @@ static int print_inhibitors(sd_bus *bus) {
|
||||
if (r < 0)
|
||||
return table_log_sort_error(r);
|
||||
|
||||
table_set_header(table, arg_legend);
|
||||
|
||||
r = table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, arg_legend);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user