Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
raulb committed Feb 1, 2023
1 parent 8ebc981 commit 4f0e8f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/meroxa/global/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ func GetMeroxaAuthCallbackURL() string {
// getEnvVal returns the value of either the first existing key specified in keys, or defaultVal if none were present.
func getEnvVal(keys []string, defaultVal string) string {
for _, key := range keys {
// First tries to return the value from the meroxa configuration file
if val := Config.GetString(key); val != "" {
return val
if Config != nil {
// First tries to return the value from the meroxa configuration file
if val := Config.GetString(key); val != "" {
return val
}
}

/// Tries to fetch it from the environment if not.
Expand Down

0 comments on commit 4f0e8f7

Please sign in to comment.