about summary refs log tree commit diff
path: root/tvix/castore/src/blobservice/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/castore/src/blobservice/mod.rs')
-rw-r--r--tvix/castore/src/blobservice/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/tvix/castore/src/blobservice/mod.rs b/tvix/castore/src/blobservice/mod.rs
index 478998a32c..7324fcf516 100644
--- a/tvix/castore/src/blobservice/mod.rs
+++ b/tvix/castore/src/blobservice/mod.rs
@@ -56,11 +56,10 @@ pub trait BlobService: Send + Sync {
     async fn chunks(&self, digest: &B3Digest) -> io::Result<Option<Vec<ChunkMeta>>> {
         if !self.has(digest).await? {
             return Ok(None);
-        } else {
-            // default implementation, signalling the backend does not have more
-            // granular chunks available.
-            return Ok(Some(vec![]));
         }
+        // default implementation, signalling the backend does not have more
+        // granular chunks available.
+        Ok(Some(vec![]))
     }
 }