Skip to content

Commit

Permalink
apply PR suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
EspenAlbert committed Jan 10, 2025
1 parent 814a852 commit 8d6e69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/advancedclustertpf/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func FormatMongoDBMajorVersion(version string) string {

func AddIDsToReplicationSpecs(replicationSpecs []admin.ReplicationSpec20240805, zoneToReplicationSpecsIDs map[string][]string) []admin.ReplicationSpec20240805 {
for zoneName, availableIDs := range zoneToReplicationSpecsIDs {
var indexOfIDToUse = 0
indexOfIDToUse := 0
for i := range replicationSpecs {
if indexOfIDToUse >= len(availableIDs) {
break // all available ids for this zone have been used
Expand Down

0 comments on commit 8d6e69b

Please sign in to comment.