mirror of
https://github.com/go-task/task.git
synced 2026-02-24 12:10:47 +01:00
refactor(compiler): remove unnecessary closure comments
This commit is contained in:
@@ -86,7 +86,6 @@ func (c *Compiler) getScopedVariables(t *ast.Task, call *Call, evaluateShVars bo
|
||||
result.Set(k, ast.Var{Value: v})
|
||||
}
|
||||
|
||||
// NOTE: This closure captures result directly - do not refactor to method call
|
||||
getRangeFunc := func(dir string) func(k string, v ast.Var) error {
|
||||
return func(k string, v ast.Var) error {
|
||||
cache := &templater.Cache{Vars: result}
|
||||
@@ -286,7 +285,6 @@ func (c *Compiler) getLegacyVariables(t *ast.Task, call *Call, evaluateShVars bo
|
||||
result.Set(k, ast.Var{Value: v})
|
||||
}
|
||||
|
||||
// NOTE: This closure captures result directly - do not refactor to method call
|
||||
getRangeFunc := func(dir string) func(k string, v ast.Var) error {
|
||||
return func(k string, v ast.Var) error {
|
||||
cache := &templater.Cache{Vars: result}
|
||||
|
||||
Reference in New Issue
Block a user