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:
Lennart Poettering
2026-02-06 20:10:24 +01:00
committed by Mike Yuan
parent 5f815d6fa1
commit 0c9de6daee
-2
View File
@@ -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;