early return

This commit is contained in:
Andras Bacsai 2024-06-05 11:21:02 +02:00
parent 294721eef9
commit f5ccebfd41

View File

@ -25,10 +25,10 @@ public function __construct()
public function handle(): void
{
try {
$server = Server::findOrFail(0);
if (isDev() || isCloud()) {
return;
}
$server = Server::findOrFail(0);
$response = Http::retry(3, 1000)->get('https://cdn.coollabs.io/coolify/versions.json');
if ($response->successful()) {
$versions = $response->json();