Change Denied to *string
This commit is contained in:
parent
62191fc3e2
commit
53538acbaf
4 changed files with 6 additions and 5 deletions
|
|
@ -611,7 +611,7 @@ func isLocationAllowed(input interface{}) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
return loc.Denied == ""
|
||||
return loc.Denied == nil
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -468,7 +468,7 @@ func TestIsLocationAllowed(t *testing.T) {
|
|||
}
|
||||
|
||||
loc := ingress.Location{
|
||||
Denied: "",
|
||||
Denied: nil,
|
||||
}
|
||||
|
||||
isAllowed := isLocationAllowed(&loc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue