Skip to content

Commit

Permalink
fix allowed change ref types environment read
Browse files Browse the repository at this point in the history
change the name of the variable in the if clause for the one that contains the env  values.
Follow the same approach that with other Env Variables
  • Loading branch information
aoteropas authored Dec 4, 2023
1 parent 0e02f34 commit 28f3094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jenkins/webhook-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func main() {

var allowedChangeRefTypes []string
envAllowedChangeRefTypes := strings.ToLower(os.Getenv(allowedChangeRefTypesEnvVar))
if len(allowedChangeRefTypes) == 0 {
if len(envAllowedChangeRefTypes) == 0 {
allowedChangeRefTypes = strings.Split(allowedChangeRefTypesDefault, ",")
log.Println(
"INFO:",
Expand Down

0 comments on commit 28f3094

Please sign in to comment.