core: use UNIT_TRIGGER at more places

Just some minor simplification.
This commit is contained in:
Lennart Poettering
2021-04-15 20:38:20 +01:00
committed by Luca Boccassi
parent 672e9aec1b
commit bc32241e6a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ static int timer_add_trigger_dependencies(Timer *t) {
assert(t);
if (!hashmap_isempty(UNIT(t)->dependencies[UNIT_TRIGGERS]))
if (UNIT_TRIGGER(UNIT(t)))
return 0;
r = unit_load_related_unit(UNIT(t), ".service", &x);