repochecker: fix file concatenation

This commit is contained in:
nemunaire 2021-05-14 00:31:00 +02:00
parent 9dc1f401b7
commit 9fa89e0793
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func CheckExerciceFiles(i Importer, exercice fic.Exercice) (files []string, errs
for _, fname := range flist {
w, hash160, hash512 := fic.CreateHashBuffers()
if err := i.getFile(path.Join(exercice.Path, "files", fname), bufio.NewWriter(w)); err != nil {
if err := getFile(i, path.Join(exercice.Path, "files", fname), bufio.NewWriter(w)); err != nil {
errs = append(errs, fmt.Sprintf("%q: unable to read file %q: %s", path.Base(exercice.Path), fname, err))
continue
} else if _, err := fic.CheckBufferHash(hash160, hash512, digests[fname]); err != nil {