Just some minor simplification.
assert(rvalue);
assert(data);
- if (!hashmap_isempty(u->dependencies[UNIT_TRIGGERS])) {
+ if (UNIT_TRIGGER(u)) {
log_syntax(unit, LOG_WARNING, filename, line, 0, "Multiple units to trigger specified, ignoring: %s", rvalue);
return 0;
}
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);
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);