mirror of
https://github.com/go-task/task.git
synced 2025-11-23 22:24:45 +02:00
fix: orderedmap race condition (#1972)
This commit is contained in:
@@ -140,11 +140,11 @@ func ReplaceVarsWithExtra(vars *ast.Vars, cache *Cache, extra map[string]any) *a
|
||||
return nil
|
||||
}
|
||||
|
||||
var newVars ast.Vars
|
||||
newVars := ast.NewVars()
|
||||
_ = vars.Range(func(k string, v ast.Var) error {
|
||||
newVars.Set(k, ReplaceVarWithExtra(v, cache, extra))
|
||||
return nil
|
||||
})
|
||||
|
||||
return &newVars
|
||||
return newVars
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user