ssh-generator: drop redundant check

The loop STRV_FOREACH() below does nothing if the strv is empty.
This commit is contained in:
Yu Watanabe
2026-02-03 16:50:00 +09:00
parent 70510c2c90
commit 9666541a56
-3
View File
@@ -357,9 +357,6 @@ static int add_extra_sockets(
assert(sshd_binary);
assert(generated_sshd_template_unit);
if (strv_isempty(arg_listen_extra))
return 0;
STRV_FOREACH(i, arg_listen_extra) {
_cleanup_free_ char *service = NULL, *socket = NULL;