From: Thomas Lamprecht Date: Tue, 25 Jul 2017 13:32:20 +0000 (+0200) Subject: restenv: remove unnecessary if X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=ad7962b47e397965861c8784a1f6c55a57adbf68 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 --- diff --git a/src/PVE/RESTEnvironment.pm b/src/PVE/RESTEnvironment.pm index c528e61..2aee8de 100644 --- a/src/PVE/RESTEnvironment.pm +++ b/src/PVE/RESTEnvironment.pm @@ -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 {