Skip to content
Snippets Groups Projects
Commit 5b645b2f authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix typo

parent e27d16ab
No related branches found
No related tags found
1 merge request!1Support self-hosted instances, ARM processors
...@@ -235,7 +235,7 @@ func main() { ...@@ -235,7 +235,7 @@ func main() {
} }
func readEnv() EnvValues { func readEnv() EnvValues {
var gitlabAPIBaseUrl, gitlabPAToken, configDir, redisURL, redisPassword string var gitlabAPIBaseUrl, gitlabAPIToken, configDir, redisURL, redisPassword string
useSentinel := false useSentinel := false
if envGitlabAPIBaseUrl := os.Getenv("GITLAB_API_BASE_URL"); envGitlabAPIBaseUrl == "https://gitlab.com/api/v4" { if envGitlabAPIBaseUrl := os.Getenv("GITLAB_API_BASE_URL"); envGitlabAPIBaseUrl == "https://gitlab.com/api/v4" {
...@@ -246,7 +246,7 @@ func readEnv() EnvValues { ...@@ -246,7 +246,7 @@ func readEnv() EnvValues {
if envGitlabAPIToken := os.Getenv("GITLAB_API_TOKEN"); envGitlabAPIToken == "" { if envGitlabAPIToken := os.Getenv("GITLAB_API_TOKEN"); envGitlabAPIToken == "" {
panic("Could not find GITLAB_API_TOKEN specified as an environment variable") panic("Could not find GITLAB_API_TOKEN specified as an environment variable")
} else { } else {
gitlabPAToken = envGitlabAPIToken gitlabAPIToken = envGitlabAPIToken
} }
if envConfigDir := os.Getenv("CONFIG_DIR"); envConfigDir == "" { if envConfigDir := os.Getenv("CONFIG_DIR"); envConfigDir == "" {
panic("Could not find CONFIG_DIR specified as an environment variable") panic("Could not find CONFIG_DIR specified as an environment variable")
...@@ -276,7 +276,7 @@ func readEnv() EnvValues { ...@@ -276,7 +276,7 @@ func readEnv() EnvValues {
RedisURL: redisURL, RedisURL: redisURL,
RedisPassword: redisPassword, RedisPassword: redisPassword,
ConfDir: configDir, ConfDir: configDir,
GitlabAPIKey: gitlabPAToken, GitlabAPIKey: gitlabAPIToken,
GitlabAPIBaseUrl: gitlabAPIBaseUrl, GitlabAPIBaseUrl: gitlabAPIBaseUrl,
UseSentinel: useSentinel, UseSentinel: useSentinel,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment