diff options
Diffstat (limited to 'ext/web/blob.rs')
-rw-r--r-- | ext/web/blob.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/web/blob.rs b/ext/web/blob.rs index 7da42e178..24cd13454 100644 --- a/ext/web/blob.rs +++ b/ext/web/blob.rs @@ -47,13 +47,10 @@ impl BlobStore { parts.remove(id) } - pub fn get_object_url( - &self, - mut url: Url, - ) -> Result<Option<Arc<Blob>>, AnyError> { + pub fn get_object_url(&self, mut url: Url) -> Option<Arc<Blob>> { let blob_store = self.object_urls.lock(); url.set_fragment(None); - Ok(blob_store.get(&url).cloned()) + blob_store.get(&url).cloned() } pub fn insert_object_url( @@ -285,7 +282,7 @@ pub fn op_blob_from_object_url( let blob_store = state.try_borrow::<BlobStore>().ok_or_else(|| { type_error("Blob URLs are not supported in this context.") })?; - if let Some(blob) = blob_store.get_object_url(url)? { + if let Some(blob) = blob_store.get_object_url(url) { let parts = blob .parts .iter() |