Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: shawnh2 <[email protected]>
  • Loading branch information
shawnh2 committed Mar 6, 2024
1 parent 78f4989 commit 3068d09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/gatewayapi/backendtrafficpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func resolveBTPolicyGatewayTargetRef(policy *egv1a1.BackendTrafficPolicy, gatewa
Name: string(policy.Spec.TargetRef.Name),
Namespace: string(*targetNs),
}
gateway, _ := gateways[key]
gateway := gateways[key]

// Check if another policy targeting the same Gateway exists
if gateway.attached {
Expand Down Expand Up @@ -233,7 +233,7 @@ func resolveBTPolicyRouteTargetRef(policy *egv1a1.BackendTrafficPolicy, routes m
Name: string(policy.Spec.TargetRef.Name),
Namespace: string(*targetNs),
}
route, _ := routes[key]
route := routes[key]

// Check if another policy targeting the same xRoute exists
if route.attached {
Expand Down
2 changes: 1 addition & 1 deletion internal/gatewayapi/envoypatchpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (t *Translator) ProcessEnvoyPatchPolicies(envoyPatchPolicies []*egv1a1.Envo
targetKind = KindGatewayClass
}

gwXdsIR, _ := xdsIR[irKey]
gwXdsIR := xdsIR[irKey]

// Create the IR with the context need to publish the status later
policyIR := ir.EnvoyPatchPolicy{}
Expand Down
4 changes: 2 additions & 2 deletions internal/gatewayapi/securitypolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func resolveSecurityPolicyGatewayTargetRef(
Name: string(policy.Spec.TargetRef.Name),
Namespace: string(*targetNs),
}
gateway, _ := gateways[key]
gateway := gateways[key]

// Check if another policy targeting the same Gateway exists
if gateway.attached {
Expand Down Expand Up @@ -252,7 +252,7 @@ func resolveSecurityPolicyRouteTargetRef(
Name: string(policy.Spec.TargetRef.Name),
Namespace: string(*targetNs),
}
route, _ := routes[key]
route := routes[key]

// Check if another policy targeting the same xRoute exists
if route.attached {
Expand Down

0 comments on commit 3068d09

Please sign in to comment.