Remove unneeded seek

The file returned from DownloadAndHash() is already seeked to the start
of the file.
This commit is contained in:
Alexander Neumann 2020-11-02 13:15:05 +01:00
parent a4507610a0
commit 866a52ad4e
1 changed files with 0 additions and 5 deletions

View File

@ -92,11 +92,6 @@ func Repack(ctx context.Context, repo restic.Repository, packs restic.IDSet, kee
for job := range processQueue {
tempfile, packID, packLength := job.tempfile, job.hash, job.packLength
_, err = tempfile.Seek(0, 0)
if err != nil {
return errors.Wrap(err, "Seek")
}
blobs, err := pack.List(repo.Key(), tempfile, packLength)
if err != nil {
return err