mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-16 18:53:28 +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};
|
$msg = $task->{status};
|
||||||
}
|
}
|
||||||
|
|
||||||
$rest_env->log_cluster_msg($pri, $user, "end task $upid $msg")
|
$rest_env->log_cluster_msg($pri, $user, "end task $upid $msg");
|
||||||
if $rest_env;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
my $worker_reaper = sub {
|
my $worker_reaper = sub {
|
||||||
|
Loading…
Reference in New Issue
Block a user