Fix oopsie in iteration over files, now use files instead of args

This commit is contained in:
2025-05-23 13:20:04 +02:00
parent b8f599d69f
commit 47617fcdc5

View File

@@ -40,7 +40,7 @@ func main() {
logger.Info("Patterns expanded to %d files", len(files)) logger.Info("Patterns expanded to %d files", len(files))
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
for _, file := range flag.Args() { for _, file := range files {
wg.Add(1) wg.Add(1)
go func(file string) { go func(file string) {
defer wg.Done() defer wg.Done()