feat TelemetryService: don't define variables that are unused

This commit is contained in:
prplwtf 2024-04-20 12:48:57 +02:00
parent c7f006c5a2
commit 6ce19ccac9

View file

@ -19,7 +19,6 @@ class BlueprintTelemetryService
if ($this->settings->get('blueprint::telemetry') == "false") { return; };
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $this->PlaceholderService->api_url().'/send/'.$this->settings->get('blueprint::panel:id')."/".$event."/",
CURLOPT_RETURNTRANSFER => true,
@ -31,10 +30,8 @@ class BlueprintTelemetryService
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_CONNECTTIMEOUT => 2,
));
$response = curl_exec($curl);
curl_close($curl);
$this->ConfigService->config('TELEMETRY_ID',$this->settings->get("blueprint::panel:id"));
return;
}