about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-03-18T12·22+0200
committerclbot <clbot@tvl.fyi>2024-03-18T14·25+0000
commit70bbf23767754b057afbcd05d476be1bf8c23157 (patch)
tree78c494a6058fedb9b4d7dd16a5b15f4b3c39dac5
parent3b1c9172f61985ce070b276e13855f82ea234c8b (diff)
refactor(tvix/castore/src/blobservice): remove useless else case r/7720
Change-Id: I09000371a1d8ff212ab46050d1a480509c6ffe70
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11183
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Tested-by: BuildkiteCI
-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 478998a32c5c..7324fcf5168a 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![]))
     }
 }