Simplify Loadconfig, remove unneeded error return var.

This commit is contained in:
zardzul
2026-03-16 19:12:25 +01:00
parent 563f9ac08d
commit e69ac3a305
2 changed files with 3 additions and 7 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ type Config struct {
DBURL string
}
func LoadConfig() (*Config, error) {
func LoadConfig() *Config {
Config := new(Config)
err := godotenv.Load(".env")
@@ -46,5 +46,5 @@ func LoadConfig() (*Config, error) {
panic("DATABASE_URL environment variable not set")
}
return Config, nil
return Config
}