From: Mike Yuan Date: Tue, 5 Sep 2023 04:55:45 +0000 (+0800) Subject: systemctl: drop unnecessary else X-Git-Tag: v255-rc1~585^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11da61658f529a16495319dbaae7d4d9911edc9b;p=thirdparty%2Fsystemd.git systemctl: drop unnecessary else Follow-up for 8a826a979aa51703ec45dbecc34691265b4d04e0 --- diff --git a/src/systemctl/systemctl-start-unit.c b/src/systemctl/systemctl-start-unit.c index 8268217967b..551e6f67685 100644 --- a/src/systemctl/systemctl-start-unit.c +++ b/src/systemctl/systemctl-start-unit.c @@ -168,8 +168,9 @@ fail: log_debug_errno(r, "Failed to %s %s, ignoring: %s", job_type, name, bus_error_message(error, r)); return 0; - } else - log_error_errno(r, "Failed to %s %s: %s", job_type, name, bus_error_message(error, r)); + } + + log_error_errno(r, "Failed to %s %s: %s", job_type, name, bus_error_message(error, r)); if (!sd_bus_error_has_names(error, BUS_ERROR_NO_SUCH_UNIT, BUS_ERROR_UNIT_MASKED,