Skip to content

Commit

Permalink
Merge pull request #6127 from justinsb/remove_duplicate_dedup
Browse files Browse the repository at this point in the history
machine-types: remove duplicate dedup
  • Loading branch information
k8s-ci-robot authored Nov 28, 2018
2 parents 741510a + b78e431 commit 0f26f2b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions hack/machine_types/machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,7 @@ func run() error {

for _, f := range sortedFamilies {
output = output + fmt.Sprintf("\n// %s family", f)
previousMachine := ""
for _, m := range machines {
// Ignore duplicates
if m.Name == previousMachine {
continue
}
previousMachine = m.Name

if family := strings.Split(m.Name, ".")[0]; family == f {
var ecu string
if m.Burstable {
Expand Down

0 comments on commit 0f26f2b

Please sign in to comment.