Skip to content
Snippets Groups Projects
Commit 51a7b637 authored by Huu Le (Lee)'s avatar Huu Le (Lee) Committed by GitHub
Browse files

fix: add missing check env logic (#636)

parent fe473571
Branches josh/async-doc-fix
No related tags found
No related merge requests found
...@@ -20,9 +20,11 @@ const renderEnvVar = (envVars: EnvVar[]): string => { ...@@ -20,9 +20,11 @@ const renderEnvVar = (envVars: EnvVar[]): string => {
(env.description (env.description
? `# ${env.description.replaceAll("\n", "\n# ")}\n` ? `# ${env.description.replaceAll("\n", "\n# ")}\n`
: "") + : "") +
(env.name && env.value (env.name
? `${env.name}=${env.value}\n\n` ? env.value
: `# ${env.name}=\n\n`), ? `${env.name}=${env.value}\n\n`
: `# ${env.name}=\n\n`
: ""),
"", "",
); );
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment