Skip to content

Commit 5f9a012

Browse files
resolved the issue with godotenv being imported but not used
1 parent 669f664 commit 5f9a012

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎cmd/commit-msg/main.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ import (
2020

2121
// main is the entry point of the commit message generator
2222
func main() {
23+
// Load the .env file
24+
if err := godotenv.Load(); err != nil {
25+
log.Printf("warning: unable to load .env file: %v", err)
26+
}
27+
2328
// Validate COMMIT_LLM and required API keys
2429
commitLLM := os.Getenv("COMMIT_LLM")
2530
var apiKey string

0 commit comments

Comments
 (0)