Redundant godotenv/autoload import in server.go #11
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/webhooker#11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The blank import
_ "github.com/joho/godotenv/autoload"appears in bothinternal/server/server.goandinternal/config/config.go. Per GO_HTTP_SERVER_CONVENTIONS §8 (Environment Loading), this import should appear in only one place.Since config loading logically precedes server startup, it should remain in
internal/config/config.goand be removed frominternal/server/server.go.clawbot referenced this issue2026-03-02 00:56:20 +01:00