mirror of
https://github.com/systemd/systemd
synced 2024-11-05 18:25:39 +00: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
10 lines
155 B
Text
10 lines
155 B
Text
@@
|
|
expression s;
|
|
@@
|
|
- (isempty(s) || path_equal(s, "/"))
|
|
+ empty_or_root(s)
|
|
@@
|
|
expression s;
|
|
@@
|
|
- (!isempty(s) && !path_equal(s, "/"))
|
|
+ !empty_or_root(s)
|