Skip to content

Commit

Permalink
rm Empty method for SP
Browse files Browse the repository at this point in the history
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
  • Loading branch information
shawnh2 committed Apr 14, 2024
1 parent a8d5173 commit b244cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/gatewayapi/securitypolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ func (t *Translator) translateSecurityPolicyForGateway(
for _, r := range h.Routes {
// If any of the features are already set, it means that a more specific
// policy(targeting xRoute) has already set it, so we skip it.
if !r.Security.Empty() {
if r.Security != nil {
continue
}

Expand Down

0 comments on commit b244cb2

Please sign in to comment.