states are explicit
This commit is contained in:
@@ -121,11 +121,11 @@ func AllZips() []string {
|
||||
zipm := map[string]struct{}{}
|
||||
for _, v := range Clients(time.Now().Add(time.Hour * 24 * 365)) {
|
||||
for _, state := range v.Zips {
|
||||
statem[state] = struct{}{}
|
||||
zipm[state] = struct{}{}
|
||||
}
|
||||
}
|
||||
zips := make([]State, 0, len(statem)+1)
|
||||
for k := range statem {
|
||||
zips := make([]string, 0, len(zipm)+1)
|
||||
for k := range zipm {
|
||||
zips = append(zips, k)
|
||||
}
|
||||
return zips
|
||||
|
||||
Reference in New Issue
Block a user