diff --git a/icechunk/src/storage/mod.rs b/icechunk/src/storage/mod.rs index 28768818..a7d84e6f 100644 --- a/icechunk/src/storage/mod.rs +++ b/icechunk/src/storage/mod.rs @@ -406,7 +406,11 @@ pub trait Storage: fmt::Debug + private::Sealed + Sync + Send { ) -> StorageResult>; async fn root_is_clean(&self) -> StorageResult { - Ok(self.list_objects(&Settings::default(), "").await?.next().await.is_none()) + match self.list_objects(&Settings::default(), "").await?.next().await { + None => Ok(true), + Some(Ok(_)) => Ok(false), + Some(Err(err)) => Err(err), + } } async fn list_chunks(