Fix issues reported by semgrep

This commit is contained in:
Alexander Neumann
2020-12-11 09:41:59 +01:00
parent 7facc8ccc1
commit 36c5d39c2c
5 changed files with 6 additions and 26 deletions

View File

@@ -517,12 +517,7 @@ func (r *Repository) LoadIndex(ctx context.Context) error {
}
// remove index files from the cache which have been removed in the repo
err = r.PrepareCache(validIndex)
if err != nil {
return err
}
return nil
return r.PrepareCache(validIndex)
}
const listPackParallelism = 10