diff --git a/taskfile/ast/graph.go b/taskfile/ast/graph.go index fc9e13c7..68f06f93 100644 --- a/taskfile/ast/graph.go +++ b/taskfile/ast/graph.go @@ -111,7 +111,7 @@ func (tfg *TaskfileGraph) Merge() (*Taskfile, error) { return nil, err } - rootVertex.Taskfile.Tasks.Range(func(name string, task *Task) error { + _ = rootVertex.Taskfile.Tasks.Range(func(name string, task *Task) error { if task == nil { task = &Task{} rootVertex.Taskfile.Tasks.Set(name, task) diff --git a/taskfile/ast/var.go b/taskfile/ast/var.go index 0fe8c05e..9ea1b566 100644 --- a/taskfile/ast/var.go +++ b/taskfile/ast/var.go @@ -49,7 +49,7 @@ func (vs *Vars) Merge(other *Vars, include *Include) { if vs == nil || other == nil { return } - other.Range(func(key string, value Var) error { + _ = other.Range(func(key string, value Var) error { if include != nil && include.AdvancedImport { value.Dir = include.Dir } diff --git a/taskfile/reader.go b/taskfile/reader.go index e249de15..e9fa8b61 100644 --- a/taskfile/reader.go +++ b/taskfile/reader.go @@ -96,7 +96,7 @@ func (r *Reader) include(node Node) error { var g errgroup.Group // Loop over each included taskfile - vertex.Taskfile.Includes.Range(func(namespace string, include ast.Include) error { + _ = vertex.Taskfile.Includes.Range(func(namespace string, include ast.Include) error { // Start a goroutine to process each included Taskfile g.Go(func() error { cache := &templater.Cache{Vars: vertex.Taskfile.Vars}