shared/dropin: use set_contains() where appropriate

This commit is contained in:
Mike Yuan
2026-02-27 08:50:37 +01:00
committed by Daan De Meyer
parent 3d9191cd5c
commit 0dbd116351
+1 -1
View File
@@ -161,7 +161,7 @@ static int unit_file_find_dirs(
assert(suffix);
path = strjoina(unit_path, "/", name, suffix);
if (!unit_path_cache || set_get(unit_path_cache, path)) {
if (!unit_path_cache || set_contains(unit_path_cache, path)) {
r = unit_file_add_dir(original_root, path, dirs);
if (r < 0)
return r;