diff --git a/pkg/config/config.go b/pkg/config/config.go index fe21340..8c483df 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -54,7 +54,7 @@ func (c *ImageConfig) IsLanguageSupported(lang Language) bool { } func (c *ImageConfig) GetSupportedLanguages() []Language { - var languages []Language + languages := make([]Language, 0, len(*c)) for lang := range *c { languages = append(languages, lang) }