Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

improvement: remove additonal newline in download env comments

Scott Wilsone690b019e4d0
diff --git a/frontend/src/helpers/download.ts b/frontend/src/helpers/download.ts
index 0069afb96c..732ccfa050 100644
--- a/frontend/src/helpers/download.ts
+++ b/frontend/src/helpers/download.ts
@@ -55,7 +55,7 @@ export const downloadSecretEnvFile = (
.map((line) => (line.trim() ? `# ${line}` : "#"))
.join("\n");
- return `${prev}${index === 0 ? "" : "\n"}${commentLines}\n${key}=${formattedValue}\n`;
+ return `${prev}${commentLines}\n${key}=${formattedValue}\n`;
}, "");
downloadTxtFile(`${environment}.env`, file);