mirror of
https://github.com/go-task/task.git
synced 2025-11-25 22:32:55 +02:00
Changes per feedback
This commit is contained in:
@@ -18,6 +18,10 @@ type Templater struct {
|
||||
err error
|
||||
}
|
||||
|
||||
func (r *Templater) RefreshStringMap() {
|
||||
r.strMap = r.Vars.ToStringMap()
|
||||
}
|
||||
|
||||
func (r *Templater) Replace(str string) string {
|
||||
if r.err != nil || str == "" {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user