Skip to content

Commit 28f3094

Browse files
authored
fix allowed change ref types environment read
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
1 parent 0e02f34 commit 28f3094

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jenkins/webhook-proxy/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func main() {
204204

205205
var allowedChangeRefTypes []string
206206
envAllowedChangeRefTypes := strings.ToLower(os.Getenv(allowedChangeRefTypesEnvVar))
207-
if len(allowedChangeRefTypes) == 0 {
207+
if len(envAllowedChangeRefTypes) == 0 {
208208
allowedChangeRefTypes = strings.Split(allowedChangeRefTypesDefault, ",")
209209
log.Println(
210210
"INFO:",

0 commit comments

Comments
 (0)