From 80e8fea461c09777df0bb0b4e8e1d9b362c4d28c Mon Sep 17 00:00:00 2001 From: Valentin Maerten Date: Mon, 30 Dec 2024 10:02:02 +0100 Subject: [PATCH] fix lint --- internal/compiler/compiler.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }