Skip to content

Commit 7766279

Browse files
committed
Fix lint issue on rebase
1 parent 1598552 commit 7766279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/mode/static/state/graph/gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func validateGateway(gw *v1.Gateway, gc *GatewayClass, npCfg *NginxProxy) ([]con
188188

189189
// we evaluate validity before validating parametersRef because an invalid parametersRef/NginxProxy does not
190190
// invalidate the entire Gateway.
191-
valid := !(len(conds) > 0)
191+
valid := len(conds) == 0
192192

193193
if gw.Spec.Infrastructure != nil && gw.Spec.Infrastructure.ParametersRef != nil {
194194
paramConds := validateGatewayParametersRef(npCfg, *gw.Spec.Infrastructure.ParametersRef)

0 commit comments

Comments
 (0)