mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-16 04:31:54 +00:00
restenv: remove unnecessary if
we return early from this function if the $rest_env singleton doesn't evaluates to true yet, so this check is useless here. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
b1dc435ef6
commit
ad7962b47e
@ -60,8 +60,7 @@ my $log_task_result = sub {
|
||||
$msg = $task->{status};
|
||||
}
|
||||
|
||||
$rest_env->log_cluster_msg($pri, $user, "end task $upid $msg")
|
||||
if $rest_env;
|
||||
$rest_env->log_cluster_msg($pri, $user, "end task $upid $msg");
|
||||
};
|
||||
|
||||
my $worker_reaper = sub {
|
||||
|
Loading…
Reference in New Issue
Block a user