fix missing }

This commit is contained in:
2026-01-01 14:02:38 +01:00
parent 7eb44a7ae6
commit faa9489700
2 changed files with 4 additions and 9 deletions
+1
View File
@@ -124,6 +124,7 @@ func LoadConfig() *Config {
// Frontend URL
if frontendURL := os.Getenv("BASE_URL"); frontendURL != "" {
config.FrontendURL = frontendURL
}
// Templates Directory
if templatesDir := os.Getenv("TEMPLATES_DIR"); templatesDir != "" {
-6
View File
@@ -55,9 +55,6 @@ QUOTED_VALUE='single quotes'
os.Unsetenv("DATABASE_URL")
os.Unsetenv("QUOTED_VALUE")
// Test-Datei laden
loadEnvFileContent(".env.test")
// Tests
tests := []struct {
key string
@@ -128,9 +125,6 @@ LOG_LEVEL=ERROR`
os.Setenv("DEBUG", "true")
os.Setenv("LOG_LEVEL", "INFO")
// .env-Datei laden
loadEnvFileContent(".env.precedence")
// Tests - bereits gesetzte Werte sollten nicht überschrieben werden
if debug := os.Getenv("DEBUG"); debug != "true" {
t.Errorf("DEBUG sollte 'true' bleiben, aber ist '%s'", debug)