Skip to content

Commit

Permalink
internal/build: sort name servers
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Nov 17, 2017
1 parent 4fae18b commit 6581e9a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions internal/build/zone.go
Expand Up @@ -44,15 +44,8 @@ func (z *Zone) Normalize() {
}
z.Tags = NewSet(tags...).Values()
z.NameServers = NewSet(z.NameServers...).Values()
for lang, u := range z.IDNTableURLs {
norm, err := normalizeLang(lang)
if err == nil && norm != lang {
delete(z.IDNTableURLs, lang)
if _, ok := z.IDNTableURLs[norm]; !ok {
z.IDNTableURLs[norm] = u
}
}
}
sort.Strings(z.NameServers)
sort.Strings(z.subdomains)
z.normalizePolicies()
}

Expand Down

0 comments on commit 6581e9a

Please sign in to comment.