hotfix(custom): allow empty servers data

This commit is contained in:
Quentin McGaw
2022-05-27 21:47:41 +00:00
parent a91eb95456
commit 67a9cacb61
2 changed files with 5 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ type AllServers struct {
}
func (a *AllServers) ServersSlice(provider string) []Server {
if provider == providers.Custom {
return nil
}
servers, ok := a.ProviderToServers[provider]
if !ok {
panic(fmt.Sprintf("provider %s not found in all servers", provider))