shared/install: remove duplicated check

install_info_add() does the exact same check.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-12-13 19:30:36 +01:00
parent d0556c55e7
commit d9c1c43e67
-3
View File
@@ -1138,9 +1138,6 @@ static int config_parse_also(
if (r < 0)
return r;
if (!unit_name_is_valid(printed, UNIT_NAME_ANY))
return -EINVAL;
r = install_info_add(c, printed, NULL, true, &alsoinfo);
if (r < 0)
return r;