mirror of
https://github.com/restic/restic.git
synced 2025-10-10 09:24:35 +00:00
Fix issues reported by semgrep
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user