Skip to content

Commit

Permalink
fix gosec lint
Browse files Browse the repository at this point in the history
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
  • Loading branch information
cnvergence committed Feb 23, 2024
1 parent 6a64316 commit ee31348
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/gatewayapi/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func (t *Translator) processHTTPRouteRules(httpRoute *HTTPRouteContext, parentRe
dstAddrTypeMap := make(map[ir.DestinationAddressType]int)

for _, backendRef := range rule.BackendRefs {
backendRef := backendRef
backendRefContext := BackendRefContext{
HTTPBackendRef: &backendRef,
}
Expand Down Expand Up @@ -471,6 +472,7 @@ func (t *Translator) processGRPCRouteRules(grpcRoute *GRPCRouteContext, parentRe
}

for _, backendRef := range rule.BackendRefs {
backendRef := backendRef
backendRefContext := BackendRefContext{
GRPCBackendRef: &backendRef,
}
Expand Down

0 comments on commit ee31348

Please sign in to comment.