diff --git a/source/gateway.go b/source/gateway.go index 854a0f77c..2a7135212 100644 --- a/source/gateway.go +++ b/source/gateway.go @@ -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 }