summaryrefslogtreecommitdiffstats
path: root/src/core/path.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-04-15 11:18:31 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2021-04-15 21:38:20 +0200
commitbc32241e6a0b66a5698c32d573ae53df50e1e159 (patch)
tree512daa030c0b2018d5ba008fd2b576c49725d021 /src/core/path.c
parentMerge pull request #19326 from keszybz/reorder-meson-status-output (diff)
downloadsystemd-bc32241e6a0b66a5698c32d573ae53df50e1e159.tar.xz
systemd-bc32241e6a0b66a5698c32d573ae53df50e1e159.zip
core: use UNIT_TRIGGER at more places
Just some minor simplification.
Diffstat (limited to 'src/core/path.c')
-rw-r--r--src/core/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/path.c b/src/core/path.c
index b954ee1f47..04084bf63e 100644
--- a/src/core/path.c
+++ b/src/core/path.c
@@ -316,7 +316,7 @@ static int path_add_trigger_dependencies(Path *p) {
assert(p);
- if (!hashmap_isempty(UNIT(p)->dependencies[UNIT_TRIGGERS]))
+ if (UNIT_TRIGGER(UNIT(p)))
return 0;
r = unit_load_related_unit(UNIT(p), ".service", &x);