diff --git a/src/pkg/variables/templates.go b/src/pkg/variables/templates.go index f0153d0baa..a4dcf1d84f 100644 --- a/src/pkg/variables/templates.go +++ b/src/pkg/variables/templates.go @@ -57,7 +57,6 @@ func (vc *VariableConfig) ReplaceTextTemplate(path string) error { if err != nil { return err } - defer textFile.Close() // This regex takes a line and parses the text before and after a discovered template: https://regex101.com/r/ilUxAz/1 regexTemplateLine := regexp.MustCompile(fmt.Sprintf("(?P.*?)(?P