Skip to content

Commit a685b04

Browse files
author
David Morin
committed
Merge branch 'master' of github.com:ovh/data-processing-spark-submit
2 parents 27c1dee + 654a61d commit a685b04

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)