Skip to content

Commit 98654ee

Browse files
authored
fix: slice cannot be const
1 parent 064b529 commit 98654ee

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

internal/ingress/annotations/customhttperrors/main_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ import (
2727
"k8s.io/ingress-nginx/internal/ingress/resolver"
2828
)
2929

30-
const (
31-
DefaultHttpErrorsString = "400,404,500,502"
32-
DefaultHttpErrorsSlice = []int{400, 404, 500, 502}
33-
)
30+
const DefaultHttpErrorsString = "400,404,500,502"
31+
32+
var DefaultHttpErrorsSlice = []int{400, 404, 500, 502}
3433

3534
func buildIngress() *networking.Ingress {
3635
return &networking.Ingress{

0 commit comments

Comments
 (0)