Skip to content

Commit 654a61d

Browse files
authored
Merge pull request #16 from ovh/dev/cgallot/PDATA-3104-understandable-error-messages
go lint
2 parents 0462d45 + 0bffc49 commit 654a61d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

submit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ func inTheList(value string, values []string) bool {
417417

418418
// test if the given configurations are valid and list the protocols configured
419419
func validConfig(configSections map[string]*ini.Section) ([]string, error) {
420-
var confList []string
420+
confList := make([]string, 0, len(configSections))
421421
var protocolsList []string
422-
for name, _ := range configSections {
422+
for name := range configSections {
423423
confList = append(confList, name)
424424
if inTheList(name, SupportedProtocols) {
425425
protocolsList = append(protocolsList, name)

0 commit comments

Comments
 (0)