Skip to content

Commit f27da2b

Browse files
committed
remove unnecessary variable
1 parent 9854a0e commit f27da2b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/gateway.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,7 @@ func (c *gatewayRouteResolver) resolve(rt gatewayRoute) (map[string]endpoint.Tar
309309
ref := rps.ParentRef
310310
namespace := strVal((*string)(ref.Namespace), meta.Namespace)
311311
// Ensure that the parent reference is in the routeParentRefs list
312-
hasParentRef := gwRouteHasParentRef(routeParentRefs, ref, meta)
313-
314-
if !hasParentRef {
312+
if !gwRouteHasParentRef(routeParentRefs, ref, meta) {
315313
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)
316314
continue
317315
}

0 commit comments

Comments
 (0)