mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-19 20:14:59 +00:00
refactor: Remove unnecessary environment variable checks in parseDockerComposeFile()
This commit is contained in:
1 parent
7d7cdf41f7
commit
578db6cc9c
1 file changed
+2
-6
@@ -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