mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
57ea45e11a
We check the same condition at various places. Let's add a trivial, common helper for this, and use it everywhere. It's not going to make things much faster or much shorter, but I think a lot more readable
11 lines
155 B
Plaintext
11 lines
155 B
Plaintext
@@
|
|
expression s;
|
|
@@
|
|
- (isempty(s) || path_equal(s, "/"))
|
|
+ empty_or_root(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- (!isempty(s) && !path_equal(s, "/"))
|
|
+ !empty_or_root(s)
|