From 6ff2bc76479c5aaf0c06322ece47b345726ff478 Mon Sep 17 00:00:00 2001 From: clawbot Date: Sun, 1 Mar 2026 15:53:43 -0800 Subject: [PATCH] fix: remove redundant godotenv import The godotenv/autoload import was duplicated in both config.go and server.go. Keep it only in config.go where configuration is loaded. closes https://git.eeqj.de/sneak/webhooker/issues/11 --- internal/server/server.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/server/server.go b/internal/server/server.go index da94588..a3aba0c 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -19,15 +19,6 @@ import ( "github.com/getsentry/sentry-go" "github.com/go-chi/chi" - - // spooky action at a distance! - // this populates the environment - // from a ./.env file automatically - // for development configuration. - // .env contents should be things like - // `DBURL=postgres://user:pass@.../` - // (without the backticks, of course) - _ "github.com/joho/godotenv/autoload" ) // ServerParams is a standard fx naming convention for dependency injection