diff --git a/internal/compiler/compiler.go b/internal/compiler/compiler.go index 83d3f1a039..3c72095a3f 100644 --- a/internal/compiler/compiler.go +++ b/internal/compiler/compiler.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "fmt" - "maps" "os" "path/filepath" "strings" @@ -191,7 +190,6 @@ func (c *Compiler) getSpecialVars(t *ast.Task, call *ast.Call) (map[string]strin "USER_WORKING_DIR": c.UserWorkingDir, "TASK_VERSION": version.GetVersion(), } - if t != nil { if t != nil { allVars["TASK"] = t.Task allVars["TASK_DIR"] = filepathext.SmartJoin(c.Dir, t.Dir) @@ -201,6 +199,6 @@ func (c *Compiler) getSpecialVars(t *ast.Task, call *ast.Call) (map[string]strin if call != nil { allVars["ALIAS"] = call.Task } - } + return allVars, nil }