Skip to content

Commit

Permalink
commented unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
APandamonium1 committed Jun 26, 2024
1 parent d83e128 commit 0803dc6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions database.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ import (
"log"
"os"

"github.com/joho/godotenv"
// "github.com/joho/godotenv"

firebase "firebase.google.com/go"
"firebase.google.com/go/db"
"google.golang.org/api/option"
)

// Use godot package to load/read the .env file and
// return the value of the key
func goDotEnvVariable(key string) string {
// return the value of the key (for local env)
// func goDotEnvVariable(key string) string {

// load .env file
err := godotenv.Load(".env")
// // load .env file
// err := godotenv.Load(".env")

if err != nil {
log.Fatalf("Error loading .env file")
}
// if err != nil {
// log.Fatalf("Error loading .env file")
// }

return os.Getenv(key)
}
// return os.Getenv(key)
// }

// Initialize Firebase client
var firebaseClient *db.Client
Expand Down

0 comments on commit 0803dc6

Please sign in to comment.