chore(surfshark): fail validation for empty string region

This commit is contained in:
Quentin McGaw
2024-02-06 20:36:14 +00:00
parent 586b0e17a0
commit a369745101

View File

@@ -10,6 +10,9 @@ func SurfsharkRetroLocChoices() (choices []string) {
choices = make([]string, 0, len(locationData))
seen := make(map[string]struct{}, len(locationData))
for _, data := range locationData {
if data.RetroLoc == "" {
continue
}
if _, ok := seen[data.RetroLoc]; ok {
continue
}