refactor: simplify domain handling in Docker compose utility functions

This commit is contained in:
Mauricio Siu
2026-02-28 11:23:16 -06:00
parent 2a5d3975e8
commit d7dc10993e

View File

@@ -106,10 +106,6 @@ export const writeDomainsToCompose = async (
compose: Compose,
domains: Domain[],
) => {
if (!domains.length) {
return "";
}
try {
const composeConverted = await addDomainToCompose(compose, domains);
const path = getComposePath(compose);
@@ -145,7 +141,7 @@ export const addDomainToCompose = async (
result = await loadDockerCompose(compose);
}
if (!result || domains.length === 0) {
if (!result) {
return null;
}