1
0
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:
Mike Yuan
2023-12-25 17:34:57 +08:00
parent c01a5c0527
commit 2413a0fab4
15 changed files with 60 additions and 44 deletions

View File

@@ -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)
)