Skip to content

Commit ff32f68

Browse files
committed
Add return statement for error condition
1 parent 01cbdfb commit ff32f68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/rsstorage/internal/chunks.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ func (w *DefaultChunkUtils) writeChunks(
179179
// returned before the last chunk
180180
if errors.Is(err, io.EOF) && i == numChunks {
181181
err = nil
182+
return
182183
}
184+
return
183185
}
184186
// record the number of bytes written
185187
copiedBytes = uint64(written)

0 commit comments

Comments
 (0)