From 11da61658f529a16495319dbaae7d4d9911edc9b Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 5 Sep 2023 12:55:45 +0800 Subject: [PATCH] systemctl: drop unnecessary else Follow-up for 8a826a979aa51703ec45dbecc34691265b4d04e0 --- src/systemctl/systemctl-start-unit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, -- 2.39.5