networkd: small simplification
This commit is contained in:
@@ -673,16 +673,12 @@ int config_parse_domains(
|
||||
}
|
||||
}
|
||||
|
||||
if (is_route) {
|
||||
if (is_route)
|
||||
r = strv_extend(&n->route_domains, domain);
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
|
||||
} else {
|
||||
else
|
||||
r = strv_extend(&n->search_domains, domain);
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
}
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
}
|
||||
|
||||
strv_uniq(n->route_domains);
|
||||
|
||||
Reference in New Issue
Block a user