mirror of
https://github.com/go-task/task.git
synced 2025-11-27 22:38:20 +02:00
fix: linting issues
This commit is contained in:
@@ -111,7 +111,7 @@ func (tfg *TaskfileGraph) Merge() (*Taskfile, error) {
|
|||||||
return nil, err
|
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 {
|
if task == nil {
|
||||||
task = &Task{}
|
task = &Task{}
|
||||||
rootVertex.Taskfile.Tasks.Set(name, task)
|
rootVertex.Taskfile.Tasks.Set(name, task)
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ func (vs *Vars) Merge(other *Vars, include *Include) {
|
|||||||
if vs == nil || other == nil {
|
if vs == nil || other == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
other.Range(func(key string, value Var) error {
|
_ = other.Range(func(key string, value Var) error {
|
||||||
if include != nil && include.AdvancedImport {
|
if include != nil && include.AdvancedImport {
|
||||||
value.Dir = include.Dir
|
value.Dir = include.Dir
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ func (r *Reader) include(node Node) error {
|
|||||||
var g errgroup.Group
|
var g errgroup.Group
|
||||||
|
|
||||||
// Loop over each included taskfile
|
// 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
|
// Start a goroutine to process each included Taskfile
|
||||||
g.Go(func() error {
|
g.Go(func() error {
|
||||||
cache := &templater.Cache{Vars: vertex.Taskfile.Vars}
|
cache := &templater.Cache{Vars: vertex.Taskfile.Vars}
|
||||||
|
|||||||
Reference in New Issue
Block a user