early return
This commit is contained in:
		@@ -25,10 +25,10 @@ class PullCoolifyImageJob implements ShouldQueue, ShouldBeEncrypted
 | 
				
			|||||||
    public function handle(): void
 | 
					    public function handle(): void
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            $server = Server::findOrFail(0);
 | 
					 | 
				
			||||||
            if (isDev() || isCloud()) {
 | 
					            if (isDev() || isCloud()) {
 | 
				
			||||||
                return;
 | 
					                return;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            $server = Server::findOrFail(0);
 | 
				
			||||||
            $response = Http::retry(3, 1000)->get('https://cdn.coollabs.io/coolify/versions.json');
 | 
					            $response = Http::retry(3, 1000)->get('https://cdn.coollabs.io/coolify/versions.json');
 | 
				
			||||||
            if ($response->successful()) {
 | 
					            if ($response->successful()) {
 | 
				
			||||||
                $versions = $response->json();
 | 
					                $versions = $response->json();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user