mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
format-table: introduce table_isempty and use it where appropriate
This commit is contained in:
@@ -132,3 +132,13 @@ expression s;
|
||||
- prioq_size(s) != 0
|
||||
+ !prioq_isempty(s)
|
||||
)
|
||||
@@
|
||||
expression s;
|
||||
@@
|
||||
(
|
||||
- table_get_rows(s) <= 1
|
||||
+ table_isempty(s)
|
||||
|
|
||||
- table_get_rows(s) > 1
|
||||
+ !table_isempty(s)
|
||||
)
|
||||
|
Reference in New Issue
Block a user