diff options
author | 2023-02-27 10:21:58 +0100 | |
---|---|---|
committer | 2023-02-27 10:21:58 +0100 | |
commit | 752c38b0d5c01dbcc8f846518a61cbde4b7537cf (patch) | |
tree | bf00aaf2eb2703cd50491e5359099159665ecaab /vendor/github.com/klauspost/compress/s2/decode.go | |
parent | [chore] Use latest containers when building (#1554) (diff) | |
download | gotosocial-752c38b0d5c01dbcc8f846518a61cbde4b7537cf.tar.xz |
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.48 to 7.0.49 (#1567)
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.48 to 7.0.49.
- [Release notes](https://github.com/minio/minio-go/releases)
- [Commits](https://github.com/minio/minio-go/compare/v7.0.48...v7.0.49)
---
updated-dependencies:
- dependency-name: github.com/minio/minio-go/v7
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/klauspost/compress/s2/decode.go')
-rw-r--r-- | vendor/github.com/klauspost/compress/s2/decode.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/klauspost/compress/s2/decode.go b/vendor/github.com/klauspost/compress/s2/decode.go index 27c0f3c2c..00c5cc72c 100644 --- a/vendor/github.com/klauspost/compress/s2/decode.go +++ b/vendor/github.com/klauspost/compress/s2/decode.go @@ -952,7 +952,11 @@ func (r *Reader) ReadSeeker(random bool, index []byte) (*ReadSeeker, error) { // Seek allows seeking in compressed data. func (r *ReadSeeker) Seek(offset int64, whence int) (int64, error) { if r.err != nil { - return 0, r.err + if !errors.Is(r.err, io.EOF) { + return 0, r.err + } + // Reset on EOF + r.err = nil } if offset == 0 && whence == io.SeekCurrent { return r.blockStart + int64(r.i), nil |