remove unnecessary variable

This commit is contained in:
David Winiarski 2025-04-08 17:09:07 -06:00
parent 9854a0ecb4
commit f27da2b10e
No known key found for this signature in database

View File

@ -309,9 +309,7 @@ func (c *gatewayRouteResolver) resolve(rt gatewayRoute) (map[string]endpoint.Tar
ref := rps.ParentRef
namespace := strVal((*string)(ref.Namespace), meta.Namespace)
// Ensure that the parent reference is in the routeParentRefs list
hasParentRef := gwRouteHasParentRef(routeParentRefs, ref, meta)
if !hasParentRef {
if !gwRouteHasParentRef(routeParentRefs, ref, meta) {
log.Debugf("Parent reference %s/%s not found in routeParentRefs for %s %s/%s", namespace, string(ref.Name), c.src.rtKind, meta.Namespace, meta.Name)
continue
}