We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27c1dee + 654a61d commit a685b04Copy full SHA for a685b04
submit.go
@@ -417,9 +417,9 @@ func inTheList(value string, values []string) bool {
417
418
// test if the given configurations are valid and list the protocols configured
419
func validConfig(configSections map[string]*ini.Section) ([]string, error) {
420
- var confList []string
+ confList := make([]string, 0, len(configSections))
421
var protocolsList []string
422
- for name, _ := range configSections {
+ for name := range configSections {
423
confList = append(confList, name)
424
if inTheList(name, SupportedProtocols) {
425
protocolsList = append(protocolsList, name)
0 commit comments