Skip to content

Commit

Permalink
Fix go array index
Browse files Browse the repository at this point in the history
Signed-off-by: khanhtc1202 <[email protected]>
  • Loading branch information
khanhtc1202 committed Jul 4, 2023
1 parent cfcd3fb commit a73f355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/piped/platformprovider/ecs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (c *client) GetListenersArn(ctx context.Context, targetGroup types.LoadBala
return nil, platformprovider.ErrNotFound
}

arns := make([]string, 0, len(output.Listeners))
arns := make([]string, len(output.Listeners))
for i := range output.Listeners {
arns[i] = *output.Listeners[i].ListenerArn
}
Expand Down

0 comments on commit a73f355

Please sign in to comment.