mirror of
https://github.com/go-task/task.git
synced 2025-06-15 00:15:10 +02:00
Update minimum go version (#1758)
* feat: update minimum version to 1.22 * refactor: use int range iterator * refactor: loop variables * refactor: replace slicesext.FirstNonZero with cmp.Or * refactor: use slices.Concat instead of append * fix: unused param * fix: linting
This commit is contained in:
@ -266,7 +266,7 @@ func itemsFromFor(
|
||||
var keys []string // The list of keys to loop over (only if looping over a map)
|
||||
var values []any // The list of values to loop over
|
||||
// Get the list from the explicit for list
|
||||
if f.List != nil && len(f.List) > 0 {
|
||||
if len(f.List) > 0 {
|
||||
values = f.List
|
||||
}
|
||||
// Get the list from the task sources
|
||||
|
Reference in New Issue
Block a user