Skip to content

Commit

Permalink
Add more comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed Jan 3, 2025
1 parent 571ffdd commit cbb711f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion linode/objkey/framework_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ func getObjectStorageKeyRegionIDsSet(regions []linodego.ObjectStorageKeyRegion)
regionIDs[i] = r.ID
}

// deduplicate
// Deduplicate regions
//
// Considering migrating to `someMap.Keys()` when upgrading to Go 1.23
// https://pkg.go.dev/maps@master#Keys
slices.Sort(regionIDs)
regionIDs = slices.Compact(regionIDs)

Expand Down

0 comments on commit cbb711f

Please sign in to comment.