1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

hotpath for a blank variable template

This commit is contained in:
Andrey Nering 2017-07-15 15:38:57 -03:00
parent 2607866c49
commit ce27e973be

View File

@ -97,6 +97,10 @@ func init() {
// ReplaceVariables writes vars into initial string
func (e *Executor) ReplaceVariables(initial string, call Call) (string, error) {
if initial == "" {
return initial, nil
}
templ, err := template.New("").Funcs(templateFuncs).Parse(initial)
if err != nil {
return "", err