This commit is contained in:
Yann Hamon 2020-06-01 05:08:45 +02:00
parent a33ba035fa
commit 742d8cdf7e
2 changed files with 5 additions and 1 deletions

View file

@ -18,7 +18,7 @@ func FindYamlInDir(dir string, fileBatches chan<- []string, batchSize int) error
files = append(files, path)
if len(files) > batchSize {
fileBatches <- files
files = nil
files = []string{}
}
}
return nil