diff --git a/pkg/app/piped/platformprovider/ecs/routing_traffic.go b/pkg/app/piped/platformprovider/ecs/routing_traffic.go index c089b77b31..df89fc99c3 100644 --- a/pkg/app/piped/platformprovider/ecs/routing_traffic.go +++ b/pkg/app/piped/platformprovider/ecs/routing_traffic.go @@ -30,13 +30,13 @@ func (c RoutingTrafficConfig) hasSameTargets(forwardActionTargets []types.Target return false } - cMap := make(map[string]bool) + cMap := make(map[string]struct{}) for _, item := range c { - cMap[item.TargetGroupArn] = true + cMap[item.TargetGroupArn] = struct{}{} } for _, target := range forwardActionTargets { - if !cMap[*target.TargetGroupArn] { + if _, ok := cMap[*target.TargetGroupArn]; !ok { return false } }