This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch poll-write
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 42b2a9c668192f33db123c72fb91027a4ec1c3e8
Author: Xuanwo <[email protected]>
AuthorDate: Mon Sep 11 16:20:58 2023 +0800

    Cleanup
    
    Signed-off-by: Xuanwo <[email protected]>
---
 core/src/raw/oio/write/range_write.rs | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/core/src/raw/oio/write/range_write.rs 
b/core/src/raw/oio/write/range_write.rs
index 32f832630..ae4558a4c 100644
--- a/core/src/raw/oio/write/range_write.rs
+++ b/core/src/raw/oio/write/range_write.rs
@@ -207,10 +207,6 @@ impl<W: RangeWrite> oio::Write for RangeWriter<W> {
                     let w = w.take().unwrap();
                     match self.location.clone() {
                         Some(location) => {
-                            debug_assert!(
-                                self.align_buffer.len() > 0,
-                                "RangeWriter requires to have last chunk"
-                            );
                             let align_buffer = self.align_buffer.clone();
 
                             let written = self.written;

Reply via email to