1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +02:00

v3: Fix bug where global vars were not being considered

This commit is contained in:
Andrey Nering
2020-04-05 11:08:49 -03:00
parent 6ed30f1add
commit cbb12b29bd
2 changed files with 6 additions and 3 deletions

View File

@ -50,9 +50,6 @@ func (vs *Vars) Merge(other *Vars) {
// Set sets a value to a given key
func (vs *Vars) Set(key string, value Var) {
if vs == nil {
vs = &Vars{}
}
if vs.Mapping == nil {
vs.Mapping = make(map[string]Var, 1)
}