1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

refactor: run task through modernize tool (#2088)

This commit is contained in:
Pete Davison
2025-02-24 11:59:50 +00:00
committed by GitHub
parent b14125bacd
commit fb631902ce
3 changed files with 8 additions and 15 deletions

View File

@@ -2,6 +2,7 @@ package task
import (
"fmt"
"maps"
"os"
"path/filepath"
"strings"
@@ -378,9 +379,7 @@ func product(matrix *ast.Matrix) []map[string]any {
for _, item := range row.Value {
newComb := make(map[string]any, len(combination))
// Copy the existing combination
for k, v := range combination {
newComb[k] = v
}
maps.Copy(newComb, combination)
// Add the current item with the corresponding key
newComb[key] = item
newResult = append(newResult, newComb)