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:
Thomas Lamprecht 2017-07-25 15:32:20 +02:00 committed by Fabian Grünbichler
parent b1dc435ef6
commit ad7962b47e

View File

@ -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 {