mirror of
https://github.com/octoleo/restic.git
synced 2024-05-31 08:00:48 +00:00
debug: fix linter warning
This commit is contained in:
parent
dc62ec5933
commit
5975ed61f3
|
@ -319,7 +319,7 @@ func loadBlobs(ctx context.Context, repo restic.Repository, pack restic.ID, list
|
||||||
err := be.Load(ctx, h, int(blob.Length), int64(blob.Offset), func(rd io.Reader) error {
|
err := be.Load(ctx, h, int(blob.Length), int64(blob.Offset), func(rd io.Reader) error {
|
||||||
n, err := io.ReadFull(rd, buf)
|
n, err := io.ReadFull(rd, buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("read error after %d bytes: %v\n", n, err)
|
return fmt.Errorf("read error after %d bytes: %v", n, err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user