Skip to content

Commit

Permalink
remove if
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaerten committed Oct 9, 2024
1 parent bf0ebfc commit 41c0179
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions taskfile/ast/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,8 @@ func (t1 *Tasks) Merge(t2 Tasks, include *Include, includedTaskfileVars *Vars) e
Include: include.Namespace,
}
}

if !slices.Contains(include.Excludes, taskName) {
println("taskName: ", taskName)
// Add the task to the merged taskfile
t1.Set(taskName, task)
}
// Add the task to the merged taskfile
t1.Set(taskName, task)

return nil
})
Expand Down

0 comments on commit 41c0179

Please sign in to comment.