Skip to content

Commit 544482a

Browse files
Merge pull request #6 from 0PrashantYadav0/main
refactor: remove dotenv loading logic from constants
2 parents 51ed436 + bb8cd0e commit 544482a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

internal/config/constants.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
package config
22

33
import (
4-
"log"
54
"os"
6-
7-
"github.com/joho/godotenv"
85
)
96

107
func getBaseURL() string {
118

12-
err := godotenv.Load()
13-
if err != nil {
14-
log.Fatal("Error loading .env file")
15-
}
9+
// err := godotenv.Load()
10+
// if err != nil {
11+
// log.Fatal("Error loading .env file")
12+
// }
1613

1714
return os.Getenv("MLSERVICE_URL")
1815
}

0 commit comments

Comments
 (0)