]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: drop unnecessary else
authorMike Yuan <me@yhndnzj.com>
Tue, 5 Sep 2023 04:55:45 +0000 (12:55 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 5 Sep 2023 04:55:45 +0000 (12:55 +0800)
Follow-up for 8a826a979aa51703ec45dbecc34691265b4d04e0

src/systemctl/systemctl-start-unit.c

index 8268217967ba79429fc9aee71bbd241609847759..551e6f6768599be1d780b53ef048d4c421e1a26f 100644 (file)
@@ -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,