mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
http: use sort.Strings
This commit is contained in:
parent
d519491545
commit
01871e7c29
@ -215,7 +215,7 @@ func (h Handler) serveMachines(w http.ResponseWriter, r *http.Request) {
|
||||
urls = append(urls, addScheme(addr))
|
||||
}
|
||||
}
|
||||
sort.Sort(sort.StringSlice(urls))
|
||||
sort.Strings(urls)
|
||||
w.Write([]byte(strings.Join(urls, ", ")))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user