Skip to content

Commit 8698fde

Browse files
resolved the issue with godotenv being imported but not used
1 parent d1929fe commit 8698fde

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
@@ -18,6 +18,11 @@ import (
1818

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

0 commit comments

Comments
 (0)