Skip to content

Commit

Permalink
rename module for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdiramen committed Feb 5, 2024
1 parent 9c5b654 commit 41f50da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/controller/ingress/httpsedge_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1035,10 +1035,10 @@ func (u *edgeRouteModuleUpdater) setEdgeRoutePolicy(ctx context.Context, route *
policy := routeSpec.Policy
client := u.clientset.Policy()

module := policy.ToNgrok()
endpointPolicy := policy.ToNgrok()

// Early return if nothing to be done
if module == nil {
if endpointPolicy == nil {
if route.Policy == nil {
u.logMatches(log, "Policy", routeModuleComparisonBothNil)
return nil
Expand All @@ -1052,7 +1052,7 @@ func (u *edgeRouteModuleUpdater) setEdgeRoutePolicy(ctx context.Context, route *
_, err := client.Replace(ctx, &ngrok.EdgeRoutePolicyReplace{
EdgeID: route.EdgeID,
ID: route.ID,
Module: *module,
Module: *endpointPolicy,
})
return err
}

0 comments on commit 41f50da

Please sign in to comment.