core: use UNIT_TRIGGER at more places
Just some minor simplification.
This commit is contained in:
committed by
Luca Boccassi
parent
672e9aec1b
commit
bc32241e6a
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user