]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
job: shorten code
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Sep 2025 08:12:13 +0000 (10:12 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Oct 2025 14:59:40 +0000 (16:59 +0200)
(cherry picked from commit 84ba8721de9d70340747758f9d028a3f9c4e302e)

src/core/job.c

index 4291d366485754e35d48f6b2435e0f61da5008d5..42bca3a253d4b92f1581c37229aeea0927c2c8a3 100644 (file)
@@ -772,8 +772,8 @@ static void job_emit_done_message(Unit *u, uint32_t job_id, JobType t, JobResult
                 /* No message on the console if the job did not actually do anything due to unmet condition. */
                 if (console_only)
                         return;
-                else
-                        do_console = false;
+
+                do_console = false;
         }
 
         if (!console_only) {  /* Skip printing if output goes to the console, and job_print_status_message()