chore(surfshark): fail validation for empty string region
This commit is contained in:
@@ -10,6 +10,9 @@ func SurfsharkRetroLocChoices() (choices []string) {
|
|||||||
choices = make([]string, 0, len(locationData))
|
choices = make([]string, 0, len(locationData))
|
||||||
seen := make(map[string]struct{}, len(locationData))
|
seen := make(map[string]struct{}, len(locationData))
|
||||||
for _, data := range locationData {
|
for _, data := range locationData {
|
||||||
|
if data.RetroLoc == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if _, ok := seen[data.RetroLoc]; ok {
|
if _, ok := seen[data.RetroLoc]; ok {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user