From 81fbca3420d0f585a99f8afedc1667cf94843778 Mon Sep 17 00:00:00 2001 From: Valentin Maerten Date: Sun, 25 Jan 2026 20:54:49 +0100 Subject: [PATCH] refactor(compiler): remove unnecessary closure comments --- compiler.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler.go b/compiler.go index d8ffc061..4689e410 100644 --- a/compiler.go +++ b/compiler.go @@ -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}