refactor: Remove unnecessary environment variable checks in parseDockerComposeFile()
This commit is contained in:
		@@ -1955,12 +1955,8 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
 | 
				
			|||||||
            $resource->docker_compose_raw = Yaml::dump($yaml, 10, 2);
 | 
					            $resource->docker_compose_raw = Yaml::dump($yaml, 10, 2);
 | 
				
			||||||
            $resource->docker_compose = Yaml::dump($finalServices, 10, 2);
 | 
					            $resource->docker_compose = Yaml::dump($finalServices, 10, 2);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if ($resource->environment_variables()->count() === 0) {
 | 
					        data_forget($resource, 'environment_variables');
 | 
				
			||||||
            data_forget($resource, 'environment_variables');
 | 
					        data_forget($resource, 'environment_variables_preview');
 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if ($resource->environment_variables_preview()->count() === 0) {
 | 
					 | 
				
			||||||
            data_forget($resource, 'environment_variables_preview');
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        $resource->save();
 | 
					        $resource->save();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return collect($finalServices);
 | 
					        return collect($finalServices);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user