job: shorten code

This commit is contained in:
Lennart Poettering
2025-09-19 17:32:48 +02:00
parent 93ed79c0b0
commit 84ba8721de
+2 -2
View 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()