From 2d4fa6ab5f90432aefd92ab17947e8b5db53283c Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 31 Oct 2025 18:41:29 -0700 Subject: [PATCH] remove redundant continue clause --- weed/s3api/chunked_reader_v4.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/weed/s3api/chunked_reader_v4.go b/weed/s3api/chunked_reader_v4.go index 1b4cf05f3..c21b57009 100644 --- a/weed/s3api/chunked_reader_v4.go +++ b/weed/s3api/chunked_reader_v4.go @@ -256,7 +256,6 @@ func (cr *s3ChunkedReader) Read(buf []byte) (n int, err error) { return 0, cr.err } cr.state = readChunk - continue case readChunkTrailer: err = peekCRLF(cr.reader) isTrailingChunk := cr.n == 0 && cr.lastChunk @@ -289,7 +288,6 @@ func (cr *s3ChunkedReader) Read(buf []byte) (n int, err error) { } else { cr.state = readChunkHeader } - continue case readTrailerChunk: // When using unsigned upload, this would be the raw contents of the trailer chunk: @@ -332,7 +330,6 @@ func (cr *s3ChunkedReader) Read(buf []byte) (n int, err error) { } cr.state = eofChunk - continue case readChunk: // There is no more space left in the request buffer. @@ -372,7 +369,6 @@ func (cr *s3ChunkedReader) Read(buf []byte) (n int, err error) { // If we're at the end of a chunk. if cr.n == 0 { cr.state = readChunkTrailer - continue } case verifyChunk: // Check if we have credentials for signature verification @@ -410,7 +406,6 @@ func (cr *s3ChunkedReader) Read(buf []byte) (n int, err error) { } else { cr.state = readChunkHeader } - continue case eofChunk: return n, io.EOF }