1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

systemctl-add-dependency: shorten code a tiny bit

This commit is contained in:
David Tardon 2023-03-28 10:57:02 +02:00
parent a372f9f16b
commit aa1c1ba1d6

View File

@ -74,12 +74,11 @@ int verb_add_dependency(int argc, char *argv[], void *userdata) {
if (r < 0)
return r;
if (arg_no_reload)
return 0;
r = daemon_reload(ACTION_RELOAD, /* graceful= */ false);
if (r < 0)
return r;
if (!arg_no_reload) {
r = daemon_reload(ACTION_RELOAD, /* graceful= */ false);
if (r < 0)
return r;
}
}
return 0;