From a36974510142540057add5b4dbdcf16b090977b7 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Tue, 6 Feb 2024 20:36:14 +0000 Subject: [PATCH] chore(surfshark): fail validation for empty string region --- internal/configuration/settings/validation/surfshark.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/configuration/settings/validation/surfshark.go b/internal/configuration/settings/validation/surfshark.go index bdf81fbd..5cec3ed7 100644 --- a/internal/configuration/settings/validation/surfshark.go +++ b/internal/configuration/settings/validation/surfshark.go @@ -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 }